forked from opensim-org/ScapulothoracicJointPlugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
29 lines (19 loc) · 825 Bytes
/
CMakeLists.txt
File metadata and controls
29 lines (19 loc) · 825 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(ScapulothoracicJointPlugin40)
cmake_minimum_required(VERSION 3.2)
file(GLOB SOURCE_FILES *.cpp)
file(GLOB INCLUDE_FILES *.h)
set(OPENSIM_INSTALL_DIR $ENV{OPENSIM_HOME}
CACHE PATH "Top-level directory of OpenSim install")
set(PLUGIN_NAME "ScapulothoracicJointPlugin40"
CACHE STRING "Name of shared library to create")
# OpenSim uses C++11 language features.
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
find_package(OpenSim REQUIRED PATHS "${OPENSIM_INSTALL_DIR}")
add_library(${PLUGIN_NAME} SHARED ${SOURCE_FILES} ${INCLUDE_FILES})
target_link_libraries(${PLUGIN_NAME} ${OpenSim_LIBRARIES})
set_target_properties(
${PLUGIN_NAME} PROPERTIES
DEFINE_SYMBOL OSIMPLUGIN_EXPORTS
PROJECT_LABEL "Libraries - ${PLUGIN_NAME}")
install(TARGETS ${PLUGIN_NAME} DESTINATION plugins)