-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
33 lines (31 loc) · 1.11 KB
/
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
add_subdirectory(lib)
set(BENCH pcsig_bench)
foreach(item IN ITEMS ${BENCH})
add_executable(${item} ${item}.cpp)
target_link_libraries(${item} PRIVATE PCSIGlib mcl::mcl)
target_include_directories(${item} PUBLIC
${CMAKE_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/lib
)
set_target_properties(${item} PROPERTIES
CXX_STANDARD 11
CXX_STANDARD_REQUIRED YES
CXX_EXTENSIONS NO)
target_compile_options(${item} PRIVATE ${MCL_COMPILE_OPTIONS})
target_compile_definitions(${item} PRIVATE MCL_DONT_EXPORT)
endforeach()
set(BENCH2 linkpcsig_bench)
foreach(item IN ITEMS ${BENCH2})
add_executable(${item} ${item}.cpp)
target_link_libraries(${item} PRIVATE LINKPCSIGlib mcl::mcl)
target_include_directories(${item} PUBLIC
${CMAKE_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/lib
)
set_target_properties(${item} PROPERTIES
CXX_STANDARD 11
CXX_STANDARD_REQUIRED YES
CXX_EXTENSIONS NO)
target_compile_options(${item} PRIVATE ${MCL_COMPILE_OPTIONS})
target_compile_definitions(${item} PRIVATE MCL_DONT_EXPORT)
endforeach()