-
Notifications
You must be signed in to change notification settings - Fork 279
/
CMakeLists.txt
31 lines (18 loc) · 778 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
cmake_minimum_required(VERSION 3.13)
project(${TARGET_NAME})
set(CMAKE_VERBOSE_MAKEFILE on)
add_library(${TARGET_NAME} SHARED ${ALL_SRC})
target_compile_options(${TARGET_NAME} PRIVATE ${ALL_COMP_ARGS})
set_target_properties(${TARGET_NAME} PROPERTIES SUFFIX ${SHARED_SUFFIX})
target_compile_features(${TARGET_NAME} PRIVATE cxx_std_17)
set_target_properties(${TARGET_NAME} PROPERTIES PREFIX "")
target_include_directories(${TARGET_NAME} PUBLIC ${ALL_INC_DIR})
target_link_directories(${TARGET_NAME} PUBLIC ${ALL_LIB_DIR})
if(APPLE)
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -undefined dynamic_lookup")
endif()
target_link_libraries(${TARGET_NAME}
${ALL_LIB}
${ALL_EXT_LINK}
)
target_compile_definitions(${TARGET_NAME} PUBLIC ${ALL_DEF})