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

This project build pymoose, gui and its examples.

TODO: ctest must check each example as well.
parent 407f5702
No related branches found
No related tags found
1 merge request!213Update rmoogli.py
......@@ -51,4 +51,4 @@ script:
after_success:
- python -c 'import moose'
- python -c 'import moogli'
- cd _build_moose_core && ctest --output-on-failure
- cd __moose-core_build && ctest --output-on-failure
......@@ -15,8 +15,8 @@ add_custom_target(moose ALL)
## intialize paths
set(PYMOOSE_SOURCE_DIR "${CMAKE_SOURCE_DIR}/moose-core")
set(PYMOOSE_BUILD_DIR ${CMAKE_BINARY_DIR}/__moose_core_build)
set(PYMOOSE_INSTALL_DIR ${CMAKE_BINARY_DIR}/__moose_core_install)
set(PYMOOSE_BUILD_DIR ${CMAKE_BINARY_DIR}/__moose-core_build)
set(PYMOOSE_INSTALL_DIR ${CMAKE_BINARY_DIR}/__moose-core_install)
set(MOOSE_GUI_DIR ${CMAKE_SOURCE_DIR}/moose-gui)
set(MOOSE_GUI_INSTALL_DIR ${CMAKE_BINARY_DIR}/__moose-gui_install)
......@@ -30,13 +30,13 @@ file(MAKE_DIRECTORY ${PYMOOSE_BUILD_DIR})
# different platform.
set(OUTPUT_MOOSEBIN ${PYMOOSE_BUILD_DIR}/moose.bin)
configure_file( ${CMAKE_SOURCE_DIR}/build_moose_core.sh.in
${CMAKE_BINARY_DIR}/build_moose_core.sh )
configure_file( ${CMAKE_SOURCE_DIR}/build_moose-core.sh.in
${CMAKE_BINARY_DIR}/build_moose-core.sh )
# Build pymoose module.
add_custom_target( moose-core ALL DEPENDS ${OUTPUT_MOOSEBIN} )
add_custom_command( OUTPUT ${OUTPUT_MOOSEBIN}
COMMAND MAKE=$(MAKE) bash -c ${CMAKE_BINARY_DIR}/build_moose_core.sh
COMMAND MAKE=$(MAKE) bash -c ${CMAKE_BINARY_DIR}/build_moose-core.sh
VERBATIM
)
......@@ -67,14 +67,16 @@ install(DIRECTORY ${PYMOOSE_INSTALL_DIR}/
PATTERN ".git" EXCLUDE
)
install(DIRECTORY ${MOOSE_GUI_INSTALL_DIR}
DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/moose/gui
PATTERN ".git" EXCLUDE
install(DIRECTORY ${MOOSE_GUI_INSTALL_DIR}/
DESTINATION lib/moose/gui
PATTERN ".git*" EXCLUDE
)
install(DIRECTORY ${MOOSE_EXAMPLE_DIR}
DESTINATION ${CMAKE_INSTALL_PREFIX}
PATTERN ".git" EXCLUDE
install(DIRECTORY ${MOOSE_EXAMPLE_DIR}/
DESTINATION lib/moose/moose-examples
PATTERN ".git*" EXCLUDE
PATTERN "_travis*" EXCLUDE
PATTERN ".travis*" EXCLUDE
)
configure_file( ${CMAKE_SOURCE_DIR}/cmake/moose.in ${CMAKE_BINARY_DIR}/moose )
......
File moved
3.1.1-67-g5dd1e81
\ No newline at end of file
3.1.1-68-g407f570
\ No newline at end of file
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