Skip to content
Snippets Groups Projects
Commit 26e6bbe5 authored by Dilawar Singh's avatar Dilawar Singh
Browse files

Tiny changes. Paths of installation.

parent f706a4a6
No related branches found
No related tags found
No related merge requests found
......@@ -9,6 +9,8 @@ else()
option(CMAKE_INSTALL_PREFIX "Install prefix" /usr)
endif()
set(PACKAGING_SCRIPTS ${CMAKE_SOURCE_DIR}/packaging_scripts)
include(ExternalProject)
message("[INFO] Installtion directory is ${CMAKE_INSTALL_PREFIX}")
ExternalProject_Add( moose-core
......@@ -20,11 +22,13 @@ ExternalProject_Add( moose-core
)
## moose-gui
## TODO: moose-gui should be a python module.
set(MOOSE_GUI_DIR ${CMAKE_SOURCE_DIR}/moose-gui)
set(MOOSE_GUI_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/share/moose/gui)
add_custom_target(moose-gui ALL)
add_custom_command(TARGET moose-gui
POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_directory ${MOOSE_GUI_DIR}
${CMAKE_INSTALL_PREFIX}/share/moose/gui
COMMAND ${CMAKE_COMMAND} -E copy_directory ${MOOSE_GUI_DIR} ${MOOSE_GUI_INSTALL_DIR}
COMMAND ${CMAKE_COMMAND} -E copy ${PACKAGING_SCRIPTS}/moosegui
${CMAKE_INSTALL_PREFIX}/bin
)
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