mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-10 07:40:03 -06:00
If the user does not specify a DESTINATION for a target type, the install() command checks to see if the appropriate variable from GNUInstallDirs is set. If it is not, then it uses an appropriate hard-coded guess. In addition, for FILES and DIRECTORY, the user can specify a file type instead of a DESTINATION, and the command will use the appropriate variable from GNUInstallDirs, or a hard-coded guess if it is not set.
9 lines
185 B
CMake
9 lines
185 B
CMake
enable_language(C)
|
|
|
|
add_executable(exe MACOSX_BUNDLE main.c)
|
|
add_library(lib1 SHARED obj1.c)
|
|
set_property(TARGET lib1 PROPERTY FRAMEWORK ON)
|
|
|
|
install(TARGETS exe)
|
|
install(TARGETS lib1)
|