Skip to content
Snippets Groups Projects
Commit d2138765 authored by Marco Biasini's avatar Marco Biasini
Browse files

reuse same target for staging headers

parent ada3ce13
No related branches found
No related tags found
No related merge requests found
......@@ -115,14 +115,14 @@ macro(stage_headers HEADERS HEADER_INSTALL_DIR TARGET SUB)
if (NOT _SUB)
set(_TARGET_NAME ${_TARGET}_headers)
endif()
add_custom_target("${_TARGET_NAME}" COMMENT "")
if (NOT TARGET headers)
add_custom_target("headers" COMMENT "")
endif()
set(HEADER_DIR "${HEADER_STAGE_PATH}/${HEADER_INSTALL_DIR}")
copy_if_different("" "${HEADER_DIR}"
"${_ABS_HEADER_NAMES}" ""
"${_TARGET_NAME}")
add_dependencies("${TARGET}" "${_TARGET_NAME}")
set_target_properties("${_TARGET_NAME}" PROPERTIES
EchoString "Staging headers ${TARGET}")
"${TARGET}")
add_dependencies(${TARGET} "headers")
endmacro()
#-------------------------------------------------------------------------------
......@@ -583,7 +583,6 @@ macro(pymod)
set(_ABS_PY_FILES)
set(_PY_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/${_DIR}")
foreach(_PY ${_PY_FILES})
MESSAGE("${_DIR}:${_PY}")
list(APPEND _ABS_PY_FILES "${_PY_SOURCE_DIR}/${_PY}")
endforeach()
install(FILES ${_ABS_PY_FILES} DESTINATION
......
......@@ -37,7 +37,7 @@ if (NOT ENABLE_STATIC)
if (ENABLE_GUI)
list(APPEND INIT_SCRIPTS init.py)
endif()
copy_if_different("${CMAKE_CURRENT_SOURCE_DIR}" "${STAGE_DIR}/${LIB_DIR}/openstructure"
copy_if_different("${CMAKE_CURRENT_SOURCE_DIR}" "${STAGE_DIR}/${SPD}"
"${INIT_SCRIPTS}" "python init scripts" ost_scripts)
install(FILES ${INIT_SCRIPTS} DESTINATION "${SPD}")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment