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

No point in making local package. Use launchpad and osc for that.

parent 20fbde5e
No related branches found
No related tags found
No related merge requests found
......@@ -9,14 +9,20 @@ else()
option(CMAKE_INSTALL_PREFIX "Install prefix" /usr)
endif()
## intialize paths
set(MOOSE_CORE_DIR "${CMAKE_SOURCE_DIR}/moose-core")
set(MOOSE_CORE_BUILD_DIR ${CMAKE_BINARY_DIR}/_build_moose_core)
set(MOOSE_CORE_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}")
set(PACKAGING_SCRIPTS ${CMAKE_SOURCE_DIR}/packaging_scripts)
include(ExternalProject)
message("[INFO] Installtion directory is ${CMAKE_INSTALL_PREFIX}")
ExternalProject_Add( moose-core
PREFIX ${CMAKE_CURRENT_BINARY_DIR}/_moose-core
SOURCE_DIR ${CMAKE_SOURCE_DIR}/moose-core
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX}
PREFIX ${CMAKE_CURRENT_BINARY_DIR}/__moose-core
SOURCE_DIR ${MOOSE_CORE_DIR}
# Extremely useful in packaging
BINARY_DIR ${MOOSE_CORE_BUILD_DIR}
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${MOOSE_CORE_INSTALL_DIR}
TEST_BEFORE_INSTALL 1
BUILD_IN_SOURCE 0
)
......@@ -32,3 +38,4 @@ add_custom_command(TARGET moose-gui
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