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(YORICK_SUPPORT "Add for pleasant yorick support" 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)
|
||||
get_git_head_revision(HEAD GIT_VER)
|
||||
SET(EXTRA_VERSION "-${GIT_VER}")
|
||||
|
@ -92,10 +92,12 @@ if (Boost_FOUND)
|
||||
add_executable(simpleDistanceFilter simpleDistanceFilter.cpp)
|
||||
target_link_libraries(simpleDistanceFilter ${tolink})
|
||||
|
||||
if (NOT COSMOTOOL_PYTHON_PACKAGING)
|
||||
install(TARGETS simple3DFilter simpleDistanceFilter
|
||||
RUNTIME DESTINATION bin
|
||||
LIBRARY DESTINATION lib
|
||||
ARCHIVE DESTINATION lib)
|
||||
endif()
|
||||
|
||||
add_executable(gadgetToArray gadgetToArray.cpp)
|
||||
target_link_libraries(gadgetToArray ${tolink})
|
||||
|
@ -99,19 +99,21 @@ else (BUILD_SHARED_LIBS)
|
||||
set_property(TARGET CosmoTool PROPERTY POSITION_INDEPENDENT_CODE ON)
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
|
||||
install(TARGETS CosmoTool
|
||||
IF(NOT COSMOTOOL_PYTHON_PACKAGING)
|
||||
install(TARGETS CosmoTool
|
||||
LIBRARY DESTINATION lib
|
||||
ARCHIVE DESTINATION lib)
|
||||
|
||||
if (BUILD_SHARED_LIBS)
|
||||
if (BUILD_SHARED_LIBS)
|
||||
install(TARGETS CosmoTool_static
|
||||
LIBRARY DESTINATION lib
|
||||
ARCHIVE DESTINATION lib)
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
|
||||
install(DIRECTORY . DESTINATION include/CosmoTool
|
||||
install(DIRECTORY . DESTINATION include/CosmoTool
|
||||
FILES_MATCHING PATTERN "*.hpp")
|
||||
install(DIRECTORY ${OMPTL_BUILD_DIR}
|
||||
install(DIRECTORY ${OMPTL_BUILD_DIR}
|
||||
DESTINATION include/CosmoTool)
|
||||
install(DIRECTORY . DESTINATION include/CosmoTool
|
||||
install(DIRECTORY . DESTINATION include/CosmoTool
|
||||
FILES_MATCHING PATTERN "*.tcc")
|
||||
ENDIF()
|
||||
|
@ -55,10 +55,10 @@ namespace CosmoTool {
|
||||
#if H5_VERSION_GE(1,10,1)
|
||||
typedef H5::H5Location H5_CommonFileGroup;
|
||||
#else
|
||||
typedef H5::CommonFG H5_CommonFileGroup;
|
||||
typedef H5::Group H5_CommonFileGroup;
|
||||
#endif
|
||||
#else
|
||||
typedef H5::Group H5_CommonFileGroup;
|
||||
typedef H5::CommonFG H5_CommonFileGroup;
|
||||
#endif
|
||||
|
||||
//!_______________________________________________________________________________________
|
||||
|
Loading…
Reference in New Issue
Block a user