Commit 930b609a authored by iff's avatar iff
Browse files

cmake::OPALConfig: simplify linking against OPAL

parent afb41705
......@@ -244,3 +244,15 @@ set(OPAL_CXX_FLAGS ${OPAL_CXX_FLAGS}
set(OPAL_LIBS ${OPAL_LIBS}
CACHE INTERNAL "" FORCE
)
# configure file
configure_file (
${CMAKE_CURRENT_SOURCE_DIR}/cmake/${PROJECT_NAME}Config.cmake.in
${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}Config_install.cmake
)
install (
FILES ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}Config_install.cmake
DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/cmake/${PROJECT_NAME}"
RENAME ${PROJECT_NAME}Config.cmake
)
SET(${PROJECT_NAME}_CMAKE_CXX_FLAGS "${${PROJECT_NAME}_CXX_FLAGS}")
SET(${PROJECT_NAME}_INCLUDE_DIR "${CMAKE_INSTALL_PREFIX}/include")
SET(${PROJECT_NAME}_LIBRARY_DIR "${CMAKE_INSTALL_PREFIX}/lib")
SET(${PROJECT_NAME}_LIBRARY "${CMAKE_INSTALL_PREFIX}/lib/libOPAL.a")
SET(IPPL_CMAKE_CXX_FLAGS "${IPPL_CMAKE_CXX_FLAGS}")
SET(${PROJECT_NAME}_LIBRARIES
${GSL_LIBRARY}
${H5Hut_LIBRARY}
${HDF5_LIBRARY}
${IPPL_LIBRARY_DIR}/lib${IPPL_LIBRARY}.a
${Boost_LIBRARIES}
${Trilinos_LIBRARIES}
${Trilinos_TPL_LIBRARIES}
${CCSE_LIBRARIES}
${CBOXLIB}
${OTHER_CMAKE_EXE_LINKER_FLAGS}
${CMAKE_DL_LIBS}
)
SET(${PROJECT_NAME}_INCLUDE_DIRS
${OPAL_SRC_DIR}
${CLASSIC_SRC_DIR}
${IPPL_INCLUDE_DIR}
${H5Hut_INCLUDE_DIR}
${HDF5_INCLUDE_DIR}
${GSL_INCLUDE_DIR}
${Trilinos_INCLUDE_DIRS}
${Trilinos_TPL_INCLUDE_DIRS}
${IPPL_SOURCE_DIRS}
${CCSE_INCLUDE_DIRS}
${GTEST_INCLUDE_DIR}
)
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