Commit 494f1eb2 authored by Erik von Reis's avatar Erik von Reis
Browse files

AWG python and foton python moved to src/python as per #231

parent e26d0f12
Pipeline #251051 passed with stage
in 13 minutes and 13 seconds
......@@ -417,6 +417,9 @@ foreach(dep ${GDS_DIRS})
add_subdirectory(${dep})
endforeach()
#build dtt
#build and install dtt
add_subdirectory(dtt)
#configure and install python files
add_subdirectory(python)
......@@ -52,15 +52,4 @@ set_target_properties( awg
INSTALL_LIB(awg)
## PYTHON installation **
configure_file(awgbase.py.in awgbase.py @ONLY)
if(ENABLE_PYTHON2)
INSTALL(FILES awg.py ${CMAKE_CURRENT_BINARY_DIR}/awgbase.py
DESTINATION ${Python2_SITELIB})
endif(ENABLE_PYTHON2)
if(ENABLE_PYTHON3)
INSTALL(FILES awg.py ${CMAKE_CURRENT_BINARY_DIR}/awgbase.py
DESTINATION ${Python3_SITELIB})
endif(ENABLE_PYTHON3)
#handle python installation
configure_file(foton.py.in foton.py @ONLY )
configure_file(foton.py2.in foton.py2 @ONLY )
if(ENABLE_PYTHON2)
MESSAGE(STATUS "Creating install target for foton python2 files")
INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/foton.py2
RENAME foton.py
DESTINATION ${Python2_SITELIB}
)
endif(ENABLE_PYTHON2)
if(ENABLE_PYTHON3)
MESSAGE(STATUS "Creating install target for foton python3 files")
INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/foton.py
DESTINATION ${Python3_SITELIB}
)
endif(ENABLE_PYTHON3)
# foton
add_executable(foton
......
add_subdirectory(awg)
add_subdirectory(foton)
\ No newline at end of file
configure_file(awgbase.py.in awgbase.py @ONLY)
if(ENABLE_PYTHON2)
INSTALL(FILES awg.py ${CMAKE_CURRENT_BINARY_DIR}/awgbase.py
DESTINATION ${Python2_SITELIB})
endif(ENABLE_PYTHON2)
if(ENABLE_PYTHON3)
INSTALL(FILES awg.py ${CMAKE_CURRENT_BINARY_DIR}/awgbase.py
DESTINATION ${Python3_SITELIB})
endif(ENABLE_PYTHON3)
\ No newline at end of file
#handle python installation
configure_file(foton.py.in foton.py @ONLY )
configure_file(foton.py2.in foton.py2 @ONLY )
if(ENABLE_PYTHON2)
MESSAGE(STATUS "Creating install target for foton python2 files")
INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/foton.py2
RENAME foton.py
DESTINATION ${Python2_SITELIB}
)
endif(ENABLE_PYTHON2)
if(ENABLE_PYTHON3)
MESSAGE(STATUS "Creating install target for foton python3 files")
INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/foton.py
DESTINATION ${Python3_SITELIB}
)
endif(ENABLE_PYTHON3)
\ No newline at end of file
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