aboutsummaryrefslogblamecommitdiffstatshomepage
path: root/examples/static/CMakeLists.txt
blob: e418aab19575752f55fd2e454a89b63cf8c91752 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                                                        
                                         
cmake_minimum_required(VERSION 3.1)

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)