From 68fe985815211ee5dcef7e557c53f234d4734da9 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Tue, 6 Aug 2024 15:19:46 -0400 Subject: [PATCH] Restore acscteforwardmodel.e hardlink to acscte.e (#620) --- pkg/acs/CMakeLists.txt | 25 ++++++++----------------- 1 file changed, 8 insertions(+), 17 deletions(-) diff --git a/pkg/acs/CMakeLists.txt b/pkg/acs/CMakeLists.txt index 18e3faba..65c9a174 100644 --- a/pkg/acs/CMakeLists.txt +++ b/pkg/acs/CMakeLists.txt @@ -51,23 +51,14 @@ install(TARGETS ${PROJECT_NAME} DESTINATION bin ) - -#project(acscteforwardmodel) -#add_executable(${PROJECT_NAME} -# src/mainacscteforwardmodel.c -#) -#target_include_directories(${PROJECT_NAME} -# PUBLIC ${HSTCAL_include} -# PUBLIC ${PROJECT_NAME}/../include -#) -#target_link_libraries(${PROJECT_NAME} -# PUBLIC acs -# PUBLIC ctegen2 -# PUBLIC hstcalib -#) -#install(TARGETS ${PROJECT_NAME} -# DESTINATION bin -#) +# Handle acscteforwardmodel.e link creation +add_custom_target(${PROJECT_NAME}forwardmodel ALL + COMMAND ${CMAKE_COMMAND} -E create_hardlink ${PROJECT_NAME}.e ${PROJECT_NAME}forwardmodel.e +) +install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}forwardmodel.e + PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE + DESTINATION bin +) project(acsrej)