Commit f1b7f86d authored by LAMBERT Jean-charles's avatar LAMBERT Jean-charles

adapt for mknemo unsio from NEMO project

parent f727de65
......@@ -53,6 +53,9 @@ MESSAGE( STATUS "core OPT =" ${OPT} )
MESSAGE( STATUS "OSX detected =" ${OSX} )
MESSAGE( STATUS "BUILD_TYPE =" ${RELEASE} )
# Detect NEMO
FIND_PACKAGE(NEMO)
FIND_PACKAGE(SQLITE3)
if (APPLE)
#set (HDF5_USE_STATIC_LIBRARIES TRUE)
......@@ -255,17 +258,18 @@ INSTALL(FILES ${UNSIO2_SOURCE_DIR}/man/man3/unsiof.3 DESTINATION ${PREFIX_MAN}/
#INSTALL(FILES ${NEMOLIB}/libnemo.a DESTINATION ${PREFIX_LIB})
INSTALL(FILES ${NEMOLIB}/libnemomaing77.a DESTINATION ${PREFIX_LIB})
# Find all NEMOLIGHT header files
FILE(GLOB nlight_files ${NEMOLIGHT}/src/*.h ${NEMOLIGHT}/src/inc/*.h)
FOREACH(source_header ${nlight_files})
INSTALL(FILES ${source_header} DESTINATION ${PREFIX_INC}/nemo)
ENDFOREACH()
FILE(GLOB nlight_files ${NEMOLIGHT}/src/inc/snapshot/*.c ${NEMOLIGHT}/src/inc/snapshot/*.h)
FOREACH(source_header ${nlight_files})
INSTALL(FILES ${source_header} DESTINATION ${PREFIX_INC}/nemo/snapshot)
ENDFOREACH()
IF (NOT NEMO_INSTALLED)
# Find all NEMOLIGHT header files
FILE(GLOB nlight_files ${NEMOLIGHT}/src/*.h ${NEMOLIGHT}/src/inc/*.h)
FOREACH(source_header ${nlight_files})
INSTALL(FILES ${source_header} DESTINATION ${PREFIX_INC}/nemo)
ENDFOREACH()
FILE(GLOB nlight_files ${NEMOLIGHT}/src/inc/snapshot/*.c ${NEMOLIGHT}/src/inc/snapshot/*.h)
FOREACH(source_header ${nlight_files})
INSTALL(FILES ${source_header} DESTINATION ${PREFIX_INC}/nemo/snapshot)
ENDFOREACH()
ENDIF (NOT NEMO_INSTALLED)
if (NOT CMAKE_INSTALL_PREFIX STREQUAL "/usr")
......
Markdown is supported
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