From 727ec960151fe603bf1269cf4601e7a83d580ba4 Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Thu, 5 Dec 2013 23:32:08 -0500 Subject: [PATCH] Add installation of executable, scripts, files. --- src/CMakeLists.txt | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index e9bde56757..ce8dfdd2c9 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -158,3 +158,20 @@ set_target_properties(${program} PROPERTIES COMPILE_FLAGS "${f90flags}" COMPILE_DEFINITIONS "${definitions}" LINK_FLAGS "${ldflags}") + +#=============================================================================== +# Install executable, scripts, manpage, license +#=============================================================================== + +install(TARGETS ${program} RUNTIME DESTINATION bin) +install(PROGRAMS utils/statepoint_cmp.py + DESTINATION bin + RENAME statepoint_cmp) +install(PROGRAMS utils/statepoint_histogram.py + DESTINATION bin + RENAME statepoint_histogram) +install(PROGRAMS utils/statepoint_meshplot.py + DESTINATION bin + RENAME statepoint_meshplot) +install(FILES ../man/man1/openmc.1 DESTINATION share/man/man1) +install(FILES ../LICENSE DESTINATION "share/doc/${program}/copyright")