forked from mulle-objc/MulleObjC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
40 lines (26 loc) · 922 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
cmake_minimum_required( VERSION 3.1)
project( MulleObjC C)
### mulle-sde environment
# add cmake module paths to search path
list( INSERT CMAKE_MODULE_PATH 0 "${PROJECT_SOURCE_DIR}/cmake/share")
list( INSERT CMAKE_MODULE_PATH 0 "${PROJECT_SOURCE_DIR}/cmake/reflect")
list( INSERT CMAKE_MODULE_PATH 0 "${PROJECT_SOURCE_DIR}/cmake")
include( Environment)
include( Files)
### Library
if( HEADERS_PHASE)
install( FILES ${INSTALL_PUBLIC_HEADERS} DESTINATION "include/MulleObjC")
install( FILES ${INSTALL_PRIVATE_HEADERS} DESTINATION "include/MulleObjC/private")
install( FILES ${CMAKE_INCLUDES} DESTINATION "include/MulleObjC/cmake")
# short cut out
if( NOT COMPILE_PHASE AND NOT LINK_PHASE)
return()
endif()
endif()
if( LINK_PHASE)
include( Dependencies OPTIONAL)
endif()
unset( STARTUP_LIBRARY_NAME)
include( Library)
include( InstallLibrary)
include( FinalOutput OPTIONAL)