-
Notifications
You must be signed in to change notification settings - Fork 299
/
CMakeLists.txt
41 lines (35 loc) · 1.04 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
34
35
36
37
38
39
40
41
cmake_minimum_required(VERSION 3.22)
project(SofaTest VERSION 0.1)
set(HEADER_FILES
InitPlugin_test.h
Sofa_test.h
)
set(SOURCE_FILES
InitPlugin_test.cpp
Sofa_test.cpp
)
list(APPEND HEADER_FILES
BroadPhase_test.h
DataEngine_test.h
ForceField_test.h
PrimitiveCreation.h
Elasticity_test.h
Elasticity_test.inl
)
list(APPEND SOURCE_FILES
PrimitiveCreation.cpp
Elasticity_test.cpp
)
sofa_find_package(Sofa.Framework REQUIRED)
sofa_find_package(Sofa.Component REQUIRED)
sofa_find_package(SceneCreator REQUIRED)
sofa_find_package(Sofa.Testing REQUIRED)
add_library(${PROJECT_NAME} SHARED ${HEADER_FILES} ${SOURCE_FILES} ${PYTHON_FILES})
target_link_libraries(${PROJECT_NAME} SceneCreator Sofa.Framework Sofa.Component Sofa.Testing)
## Install rules for the library and headers; CMake package configurations files
sofa_create_package_with_targets(
PACKAGE_NAME ${PROJECT_NAME}
TARGETS ${PROJECT_NAME} AUTO_SET_TARGET_PROPERTIES
PACKAGE_VERSION ${PROJECT_VERSION}
RELOCATABLE "plugins"
)