Update list-maintainers to output redmine syntax
[hoomd-blue.git] / python-runner / CMakeLists.txt
blob38243ef680a3b1536785e012871d61d10ec48995
1 # Maintainer: joaander
3 # handle native python installs separately from the others
4 if (PYTHON_SITEDIR)
5     # install the hoomd runner script to transparently process hoomd into python
6     install(PROGRAMS ${CMAKE_CURRENT_SOURCE_DIR}/hoomd
7             DESTINATION ${BIN_INSTALL_DIR}
8             )
9 else (PYTHON_SITEDIR)
10     # setup and install the hoomd executable
11     set(_hoomd_run_input ${CMAKE_CURRENT_SOURCE_DIR}/hoomd_run.in)
12     
13     add_executable(hoomd hoomd.cc)
14     target_link_libraries(hoomd libhoomd ${HOOMD_COMMON_LIBS})
15     fix_cudart_rpath(hoomd)
17     # set the rpath so that the exe can find libs stashed in lib/hoomd/python-module
18     set_target_properties(hoomd PROPERTIES INSTALL_RPATH "\\\$ORIGIN/../lib/hoomd/python-module")
20     # install the executable
21     install(TARGETS hoomd
22             RUNTIME DESTINATION ${BIN_INSTALL_DIR})
23 endif (PYTHON_SITEDIR)
24