summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/install/TARGETS-Defaults-Cache.cmake
blob: 58c5273309c4d1bc6b2b68ecdc2f9801487dc239 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
enable_language(C)

add_executable(exe main.c)
add_library(lib1 SHARED obj1.c)
set_property(TARGET lib1 PROPERTY PUBLIC_HEADER ${CMAKE_CURRENT_SOURCE_DIR}/obj3.h)
add_library(lib2 STATIC obj3.c)
add_library(lib3 SHARED obj4.c)
set_property(TARGET lib3 PROPERTY PRIVATE_HEADER ${CMAKE_CURRENT_SOURCE_DIR}/obj4.h)
add_library(lib4 SHARED obj5.c)
set_property(TARGET lib4 PROPERTY PUBLIC_HEADER ${CMAKE_CURRENT_SOURCE_DIR}/obj5.h)

install(TARGETS exe lib1 lib2)
install(TARGETS lib3
  LIBRARY DESTINATION lib3
  ARCHIVE DESTINATION lib3
  )
install(TARGETS lib4
  LIBRARY DESTINATION lib4
  RUNTIME DESTINATION lib4
  )