amdis_reinit.cmake 880 Bytes
Newer Older
1 2 3 4
# specify the target and requirements for the reinit library

SET(COMPOSITE_SOURCE_DIR ${SOURCE_DIR}/reinit)
set(REINIT_SOURCE_DIR ${SOURCE_DIR}/reinit)
5

6 7 8 9 10 11
file(GLOB REINIT_SRC ${REINIT_SOURCE_DIR}/*.cc)
add_library(amdis_reinit ${REINIT_SRC})
add_library(AMDiS::reinit ALIAS amdis_reinit)

target_compile_definitions(amdis_reinit PUBLIC
    HAVE_REINIT=1)
12 13
target_include_directories(amdis_reinit PUBLIC ${REINIT_SOURCE_DIR})
target_link_libraries(amdis_reinit amdis)
14 15 16 17 18 19

# specify how to install this target:
# -----------------------------------

file(GLOB RINIT_HEADERS "${REINIT_SOURCE_DIR}/*.h*")
install(FILES ${RINIT_HEADERS} DESTINATION include/amdis/reinit)
20 21


22 23
set_target_properties(amdis_reinit PROPERTIES OUTPUT_NAME amdisreinit${POSTFIX}
                                        DEBUG_OUTPUT_NAME amdisreinit${POSTFIX}d)
24
install(TARGETS amdis_reinit DESTINATION lib/amdis/ )