aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/examples/static/CMakeLists.txt
blob: b03d452f848b1fe58f82bd3eb970a1b5686f8990 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
cmake_minimum_required(VERSION 3.8)

project(example_static)

include(../../common.cmake)

add_library(bar bar.cpp)
target_include_directories(bar PUBLIC .)

add_executable(foo foo.cpp)
target_link_libraries(foo PRIVATE bar)

install(TARGETS foo bar RUNTIME DESTINATION bin ARCHIVE DESTINATION lib)
install_pdbs(TARGETS foo DESTINATION bin)