Skip to content
Snippets Groups Projects
Verified Commit 457f870c authored by Paul Dechamps's avatar Paul Dechamps :speech_balloon:
Browse files

(build) Fix build with dartflo submodule

Modified CMakeLists.txt files to find amfe in dartflo subdirectory and linked dart, tbox and fwk libs with blast through swig. Changed root run.py file to find amfe.
parent c92800c3
No related branches found
No related tags found
1 merge request!1BLASTER v1.0
Pipeline #19659 failed
......@@ -117,7 +117,7 @@ IF(UNIX)
ENDIF()
# -- Sub directories
ADD_SUBDIRECTORY( amfe )
ADD_SUBDIRECTORY( modules )
ADD_SUBDIRECTORY( blast )
# -- FINAL
......
......@@ -26,10 +26,11 @@ SET_PROPERTY(TARGET blastw PROPERTY SWIG_USE_TARGET_INCLUDE_DIRECTORIES ON)
MACRO_DebugPostfix(blastw)
TARGET_INCLUDE_DIRECTORIES(blastw PRIVATE ${PROJECT_SOURCE_DIR}/blast/_src
${PROJECT_SOURCE_DIR}/amfe/tbox/_src
${PROJECT_SOURCE_DIR}/amfe/fwk/_src
${PROJECT_SOURCE_DIR}/modules/dartflo/dart/_src
${PROJECT_SOURCE_DIR}/modules/dartflo/ext/amfe/tbox/_src
${PROJECT_SOURCE_DIR}/modules/dartflo/ext/amfe/fwk/_src
${PYTHON_INCLUDE_PATH})
TARGET_LINK_LIBRARIES(blastw PRIVATE blast tbox fwk ${PYTHON_LIBRARIES})
TARGET_LINK_LIBRARIES(blastw PRIVATE blast dart tbox fwk ${PYTHON_LIBRARIES})
INSTALL(FILES ${EXECUTABLE_OUTPUT_PATH}/\${BUILD_TYPE}/blastw.py DESTINATION ${CMAKE_INSTALL_PREFIX})
INSTALL(TARGETS blastw DESTINATION ${CMAKE_INSTALL_PREFIX})
ADD_SUBDIRECTORY( dartflo )
\ No newline at end of file
......@@ -22,9 +22,9 @@ def main():
import os.path, sys
# adds fwk/tbox to the python path
thisdir = os.path.split(os.path.abspath(__file__))[0]
fwkdir = os.path.abspath(os.path.join(thisdir, 'amfe'))
fwkdir = os.path.abspath(os.path.join(thisdir, 'modules/dartflo/ext/amfe'))
if not os.path.isdir(fwkdir):
raise Exception('blaster/amfe not found!\n')
raise Exception('blaster/modules/dartflo/amfe not found!\n')
sys.path.append(fwkdir)
# adds "." to the pythonpath
sys.path.append(thisdir)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment