-
Notifications
You must be signed in to change notification settings - Fork 22
/
CMakeLists.txt
36 lines (31 loc) · 1.14 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
file(GLOB_RECURSE AVANGO_SKELANIM_PYTHON_SRC RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
*.cpp
*.hpp
)
ADD_LIBRARY( _skelanim SHARED
${AVANGO_SKELANIM_PYTHON_SRC}
)
set_target_properties( _skelanim
PROPERTIES LIBRARY_OUTPUT_DIRECTORY
${CMAKE_SOURCE_DIR}/lib/avango/gua/skelanim
)
TARGET_LINK_LIBRARIES( _skelanim avango_skelanim)
SET_TARGET_PROPERTIES( _skelanim PROPERTIES PREFIX "")
###############################################################################
# install modules
###############################################################################
IF (MSVC)
post_build_install_target(_skelanim
${AVANGO_INSTALL_DIRECTORY}/python3.5/avango/gua/skelanim/_skelanim.pyd)
ELSEIF (UNIX)
post_build_install_target(_skelanim
${AVANGO_INSTALL_DIRECTORY}/python3.5/avango/gua/skelanim/_skelanim.so)
ENDIF (MSVC)
###############################################################################
# install utilities
###############################################################################
COPY_PYTHON_FILES_INTO_DIRECTORY(
${CMAKE_CURRENT_SOURCE_DIR}
${AVANGO_INSTALL_DIRECTORY}/python3.5/avango/gua/skelanim
_skelanim
)