Skip to content

Commit 97cdc0d

Browse files
Add CMakeLists.txt
1 parent 7d09806 commit 97cdc0d

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

CMakeLists.txt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
###########################################
2+
## COPY COMPILED LIBRARY INTO WRAPPER
3+
###########################################
4+
# This file is expected to be called from a higher-level
5+
# CMakeLists.txt when compiling the C++ library.
6+
7+
# Where to place compiled library for Python wrapper
8+
# TODO-TEMPLATE: Update this directory for your library namespace
9+
set(PYTHON_LIB_DIR ${CMAKE_CURRENT_SOURCE_DIR}/src/ITS/.../${LIB_NAME}/)
10+
11+
add_custom_target(
12+
COPY_LIB_TO_PYTHON ALL
13+
COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_FILE:${LIB_NAME}> ${PYTHON_LIB_DIR}
14+
DEPENDS ${LIB_NAME}
15+
COMMENT "Copying library to Python wrapper directory"
16+
)

0 commit comments

Comments
 (0)