Generate ApplicationReps.hpp in binary directory

This commit is contained in:
Jack Andersen 2018-10-16 15:01:33 -10:00
parent 46a6fc67ed
commit ba6e920034
3 changed files with 4 additions and 2 deletions

1
hecl/.gitignore vendored
View File

@ -1,3 +1,2 @@
DataSpecRegistry.hpp DataSpecRegistry.hpp
include/hecl/ApplicationReps.hpp
.DS_Store .DS_Store

View File

@ -1,5 +1,8 @@
include_guard(GLOBAL) include_guard(GLOBAL)
file(RELATIVE_PATH REL_PATH ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_LIST_DIR})
include_directories(${CMAKE_CURRENT_BINARY_DIR}/${REL_PATH})
unset(HECL_APPLICATION_REPS_TARGETS_LIST CACHE) unset(HECL_APPLICATION_REPS_TARGETS_LIST CACHE)
unset(HECL_APPLICATION_REPS_INCLUDES_LIST CACHE) unset(HECL_APPLICATION_REPS_INCLUDES_LIST CACHE)
unset(HECL_APPLICATION_PIPELINE_REPS_UNIVERSAL CACHE) unset(HECL_APPLICATION_PIPELINE_REPS_UNIVERSAL CACHE)

View File

@ -45,7 +45,7 @@ foreach(name ${HECL_APPLICATION_STAGE_REPS})
set(HECL_APPLICATION_STAGE_REPS_LOCAL "${HECL_APPLICATION_STAGE_REPS_LOCAL}STAGES_${name}(P, S) \\\n") set(HECL_APPLICATION_STAGE_REPS_LOCAL "${HECL_APPLICATION_STAGE_REPS_LOCAL}STAGES_${name}(P, S) \\\n")
endforeach() endforeach()
configure_file(include/hecl/ApplicationReps.hpp.in ${CMAKE_CURRENT_SOURCE_DIR}/include/hecl/ApplicationReps.hpp @ONLY) configure_file(include/hecl/ApplicationReps.hpp.in ApplicationReps.hpp @ONLY)
set(ATHENA_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/extern/athena/include) set(ATHENA_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/extern/athena/include)
set(ATHENA_INCLUDE_DIR ${ATHENA_INCLUDE_DIR} PARENT_SCOPE) set(ATHENA_INCLUDE_DIR ${ATHENA_INCLUDE_DIR} PARENT_SCOPE)