blob: 5b76e22a5050acbc61d6c0a8397eda1ff53c1928 (
plain) (
blame)
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)
|