Add support for setup.py in the rest of cmake files. Fix for HDF5.
This commit is contained in:
parent
4522b676a9
commit
3626ebf5ce
@ -20,6 +20,7 @@ option(INTERNAL_BOOST "Build internal version of BOOST" OFF)
|
|||||||
option(USE_GIT_VERSION "Use GIT version to pad version number" OFF)
|
option(USE_GIT_VERSION "Use GIT version to pad version number" OFF)
|
||||||
option(YORICK_SUPPORT "Add for pleasant yorick support" ON)
|
option(YORICK_SUPPORT "Add for pleasant yorick support" ON)
|
||||||
option(BUILD_PYTHON "Build the python modules" ON)
|
option(BUILD_PYTHON "Build the python modules" ON)
|
||||||
|
option(COSMOTOOL_PYTHON_PACKAGING "Flag set to on if we only want the python package to be installed" OFF)
|
||||||
IF(USE_GIT_VERSION)
|
IF(USE_GIT_VERSION)
|
||||||
get_git_head_revision(HEAD GIT_VER)
|
get_git_head_revision(HEAD GIT_VER)
|
||||||
SET(EXTRA_VERSION "-${GIT_VER}")
|
SET(EXTRA_VERSION "-${GIT_VER}")
|
||||||
|
@ -92,10 +92,12 @@ if (Boost_FOUND)
|
|||||||
add_executable(simpleDistanceFilter simpleDistanceFilter.cpp)
|
add_executable(simpleDistanceFilter simpleDistanceFilter.cpp)
|
||||||
target_link_libraries(simpleDistanceFilter ${tolink})
|
target_link_libraries(simpleDistanceFilter ${tolink})
|
||||||
|
|
||||||
|
if (NOT COSMOTOOL_PYTHON_PACKAGING)
|
||||||
install(TARGETS simple3DFilter simpleDistanceFilter
|
install(TARGETS simple3DFilter simpleDistanceFilter
|
||||||
RUNTIME DESTINATION bin
|
RUNTIME DESTINATION bin
|
||||||
LIBRARY DESTINATION lib
|
LIBRARY DESTINATION lib
|
||||||
ARCHIVE DESTINATION lib)
|
ARCHIVE DESTINATION lib)
|
||||||
|
endif()
|
||||||
|
|
||||||
add_executable(gadgetToArray gadgetToArray.cpp)
|
add_executable(gadgetToArray gadgetToArray.cpp)
|
||||||
target_link_libraries(gadgetToArray ${tolink})
|
target_link_libraries(gadgetToArray ${tolink})
|
||||||
|
@ -99,6 +99,7 @@ else (BUILD_SHARED_LIBS)
|
|||||||
set_property(TARGET CosmoTool PROPERTY POSITION_INDEPENDENT_CODE ON)
|
set_property(TARGET CosmoTool PROPERTY POSITION_INDEPENDENT_CODE ON)
|
||||||
endif (BUILD_SHARED_LIBS)
|
endif (BUILD_SHARED_LIBS)
|
||||||
|
|
||||||
|
IF(NOT COSMOTOOL_PYTHON_PACKAGING)
|
||||||
install(TARGETS CosmoTool
|
install(TARGETS CosmoTool
|
||||||
LIBRARY DESTINATION lib
|
LIBRARY DESTINATION lib
|
||||||
ARCHIVE DESTINATION lib)
|
ARCHIVE DESTINATION lib)
|
||||||
@ -115,3 +116,4 @@ install(DIRECTORY ${OMPTL_BUILD_DIR}
|
|||||||
DESTINATION include/CosmoTool)
|
DESTINATION include/CosmoTool)
|
||||||
install(DIRECTORY . DESTINATION include/CosmoTool
|
install(DIRECTORY . DESTINATION include/CosmoTool
|
||||||
FILES_MATCHING PATTERN "*.tcc")
|
FILES_MATCHING PATTERN "*.tcc")
|
||||||
|
ENDIF()
|
||||||
|
@ -55,10 +55,10 @@ namespace CosmoTool {
|
|||||||
#if H5_VERSION_GE(1,10,1)
|
#if H5_VERSION_GE(1,10,1)
|
||||||
typedef H5::H5Location H5_CommonFileGroup;
|
typedef H5::H5Location H5_CommonFileGroup;
|
||||||
#else
|
#else
|
||||||
typedef H5::CommonFG H5_CommonFileGroup;
|
typedef H5::Group H5_CommonFileGroup;
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
typedef H5::Group H5_CommonFileGroup;
|
typedef H5::CommonFG H5_CommonFileGroup;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//!_______________________________________________________________________________________
|
//!_______________________________________________________________________________________
|
||||||
|
Loading…
Reference in New Issue
Block a user