Commit 86c9752e authored by Cristian Lalescu's avatar Cristian Lalescu
Browse files

cleans up install step

parent d93071dc
......@@ -493,18 +493,18 @@ install(DIRECTORY "${PROJECT_SOURCE_DIR}/TurTLE/test/profiler" DESTINATION share
#####################################################################################
## Install the python3 wrapper
# update __init__
# copy python package
install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E copy_directory ${PROJECT_SOURCE_DIR}/TurTLE ${PROJECT_BINARY_DIR}/python/TurTLE/)")
# install __init__
configure_file(
"${PROJECT_SOURCE_DIR}/TurTLE/__init__.py.in"
"${PROJECT_SOURCE_DIR}/TurTLE/__init__.py"
"${PROJECT_BINARY_DIR}/python/TurTLE/__init__.py"
@ONLY)
# update setup.py
configure_file(
"${PROJECT_SOURCE_DIR}/setup.py.in"
"${PROJECT_BINARY_DIR}/python/setup.py"
@ONLY)
# copy command
install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E copy_directory ${PROJECT_SOURCE_DIR}/TurTLE ${PROJECT_BINARY_DIR}/python/TurTLE/)")
if(EXISTS "${PROJECT_BINARY_DIR}/host_info.py")
install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E copy ${PROJECT_BINARY_DIR}/host_info.py ${PROJECT_BINARY_DIR}/python/TurTLE/)")
else()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment