-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
63 lines (57 loc) · 2.49 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
cmake_minimum_required(VERSION 3.2)
project(OpenSim_RA)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--no-as-needed")
# just put the binaries into the build output dir, rather than into a
# subfolder
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
# so that CLion/qtcreator can open your project without further
# configuring
#list(APPEND CMAKE_PREFIX_PATH "/home/none/opensim-core-joris-install/lib/cmake/")
#list(APPEND CMAKE_PREFIX_PATH "/home/none/opensim/hacking/RelWithDebInfo-install/lib/cmake")
list(APPEND CMAKE_PREFIX_PATH "/home/none/opensim/interpolation/RelWithDebInfo-install/lib/cmake")
#list(APPEND CMAKE_PREFIX_PATH "/home/none/opensim/source/RelWithDebInfo-install/lib/cmake")
find_package(OpenSim REQUIRED)
find_package(Simbody REQUIRED)
# any target that links to this INTERFACE target will transitively
# inherit all the library, include, compile, etc. options of that
# target. It's a handy trick for configuring all the dependencies +
# options on one target, rather than having to duplicate it
add_library(common_options_target INTERFACE)
target_link_libraries(common_options_target INTERFACE
SimTKcommon
SimTKmath
SimTKsimbody
osimLepton
osimCommon
osimSimulation
osimActuators
osimAnalyses
osimTools)
# this uses generator expressions. see (find "COMPILER_ID")
# https://cmake.org/cmake/help/latest/manual/cmake-generator-expressions.7.html
target_compile_options(common_options_target INTERFACE
# The answers file uses `#pragma region` to facilitate code folding
# when using this example in a live demonstration, but these pragmas
# are only recognized by MSVC.
"$<$<CXX_COMPILER_ID:GNU>:-Wno-unknown-pragmas>"
"$<$<CXX_COMPILER_ID:Clang>:-Wno-unknown-pragmas>")
#add_subdirectory(Moment_arm)
#add_subdirectory(Wrapping_analytical)
#add_subdirectory(Wrapping_surfaces/Hopper)
#add_subdirectory(Wrapping_surfaces/Ellipsoid_test)
#add_subdirectory(Wrapping_surfaces/WrappingSurfaces)
#add_subdirectory(Wrapping_cables)
#add_subdirectory(Wrapping_speed)
#add_subdirectory(Interpolation)
#add_subdirectory(Integration/ImplicitIntegration)
#add_subdirectory(Integration/CPodesIntegration)
#add_subdirectory(Integration/DifferentIntegration)
#add_subdirectory(Random_tests)
#add_subdirectory(Integration/ForwardTool)
#add_subdirectory(Interpolation_tool)
#add_subdirectory(Interpolation_MTU)
#add_subdirectory(Interpolation_CBS/Joris)
add_subdirectory(Interpolation_test)