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

moose-gui is installed to <prefix>/share/moose/gui folder.

parent eccc5bb2
No related branches found
No related tags found
No related merge requests found
CMAKE_MINIMUM_REQUIRED(VERSION 2.8) CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
PROJECT(moose) PROJECT(moose)
## Default install prefix. When building packages, such as on launchpad, we need
## to modify installation prefix.
if(DEVELOPER)
option(CMAKE_INSTALL_PREFIX "Install prefix" ${CMAKE_BINARY_DIR}/_install)
else()
option(CMAKE_INSTALL_PREFIX "Install prefix" /usr)
endif()
include(ExternalProject) include(ExternalProject)
message("[INFO] Installtion directory is ${CMAKE_INSTALL_PREFIX}")
ExternalProject_Add( moose-core ExternalProject_Add( moose-core
PREFIX ${CMAKE_CURRENT_BINARY_DIR}/_moose-core PREFIX ${CMAKE_CURRENT_BINARY_DIR}/_moose-core
SOURCE_DIR ${CMAKE_SOURCE_DIR}/moose-core SOURCE_DIR ${CMAKE_SOURCE_DIR}/moose-core
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${CMAKE_BINARY_DIR}/_install CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX}
TEST_BEFORE_INSTALL 1 TEST_BEFORE_INSTALL 1
BUILD_IN_SOURCE 0 BUILD_IN_SOURCE 0
) )
## moose-gui
set(MOOSE_GUI_DIR ${CMAKE_SOURCE_DIR}/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
)
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