-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
executable file
·29 lines (21 loc) · 899 Bytes
/
Copy pathCMakeLists.txt
File metadata and controls
executable file
·29 lines (21 loc) · 899 Bytes
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
# project settings
aux_source_directory(. SRC_LIST_TEST_BOOST_PYTHON)
# find boost::python
find_package(Boost 1.74 REQUIRED COMPONENTS system python)
# set binary executable
add_executable(test-boost-python test-boost-python.cpp)
add_executable(test-pointer-ref test-pointer-ref.cpp)
add_executable(test-shmem-vector test-shmem-vector.cpp)
# set include
target_include_directories(test-boost-python PRIVATE ${Python3_INCLUDE_DIRS})
# set target link flags
target_link_libraries(test-boost-python ${PYTHON_LIBRARIES})
target_link_libraries(test-boost-python ${Boost_LIBRARIES})
target_link_libraries(test-pointer-ref ${Boost_UNIT_TEST_FRAMEWORK_LIBRARY})
target_link_libraries(test-shmem-vector ${Boost_UNIT_TEST_FRAMEWORK_LIBRARY})
# add subdirs
add_subdirectory(ResultOrder)
# only include java jni test when JAVA_BACKEND=1
if ( DEFINED JAVA_BACKEND )
add_subdirectory(JavaJNI)
endif()