forked from sofa-framework/SofaPython3
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
33 lines (26 loc) · 756 Bytes
/
CMakeLists.txt
File metadata and controls
33 lines (26 loc) · 756 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
30
31
32
33
project(Bindings.Sofa)
set(SOFABINDINGS_MODULE_LIST
Components
Core
Helper
Simulation
Types
)
foreach(sofabindings_module ${SOFABINDINGS_MODULE_LIST})
add_subdirectory(src/SofaPython3/Sofa/${sofabindings_module})
endforeach()
SP3_add_python_package(
SOURCE_DIRECTORY
${CMAKE_CURRENT_SOURCE_DIR}/package
TARGET_DIRECTORY
Sofa
)
add_library(${PROJECT_NAME} INTERFACE)
add_library(SofaPython3::${PROJECT_NAME} ALIAS ${PROJECT_NAME})
foreach(sofabindings_module ${SOFABINDINGS_MODULE_LIST})
target_link_libraries(${PROJECT_NAME} INTERFACE ${PROJECT_NAME}.${sofabindings_module})
endforeach()
install(TARGETS ${PROJECT_NAME} EXPORT BindingsTargets)
if(SP3_BUILD_TEST)
add_subdirectory(tests)
endif()