Skip to content
Snippets Groups Projects
Commit 82a275c6 authored by Robert K's avatar Robert K
Browse files

renamed codegen targets.

${target}_codegenerator creates the files.
${target}_optmized uses the autogenerator files.
parent 5713087d
No related branches found
No related tags found
No related merge requests found
......@@ -12,23 +12,23 @@ function(add_code_generate_targets)
string(REPLACE "compilesources-NOTFOUND" "" compilesources "${compilesources}")
#Add targets and executables
add_executable( ${_target}_generatecode ${compilesources} )
set_property(TARGET ${_target}_generatecode APPEND PROPERTY COMPILE_DEFINITIONS "NDEBUG;BASEFUNCTIONSET_CODEGEN_GENERATE;${compiledefs}")
dune_target_link_libraries( ${_target}_generatecode "${DUNE_LIBS}" )
add_executable( ${_target}_codegenerator ${compilesources} )
set_property(TARGET ${_target}_codegenerator APPEND PROPERTY COMPILE_DEFINITIONS "NDEBUG;BASEFUNCTIONSET_CODEGEN_GENERATE;${compiledefs}")
dune_target_link_libraries( ${_target}_codegenerator "${DUNE_LIBS}" )
add_executable( ${_target}_compilecode ${compilesources} )
set_property(TARGET ${_target}_compilecode APPEND PROPERTY COMPILE_DEFINITIONS "USE_BASEFUNCTIONSET_CODEGEN;${compiledefs}")
dune_target_link_libraries( ${_target}_compilecode "${DUNE_LIBS}" )
add_executable( ${_target}_optimized ${compilesources} )
set_property(TARGET ${_target}_optimized APPEND PROPERTY COMPILE_DEFINITIONS "USE_BASEFUNCTIONSET_CODEGEN;${compiledefs}")
dune_target_link_libraries( ${_target}_optimized "${DUNE_LIBS}" )
add_custom_target( ${_target}_generate
${CMAKE_COMMAND} -D RUN_CODEGEN_PROGRAM=${CMAKE_CURRENT_BINARY_DIR}/${_target}_generatecode -D RUN_CODEGEN_PARAMFILE="" -P ${CMAKE_SOURCE_DIR}/cmake/scripts/RunGenerate.cmake )
${CMAKE_COMMAND} -D RUN_CODEGEN_PROGRAM=${CMAKE_CURRENT_BINARY_DIR}/${_target}_codegenerator -D RUN_CODEGEN_PARAMFILE="" -P ${CMAKE_SOURCE_DIR}/cmake/scripts/RunGenerate.cmake )
add_custom_target( ${_target}_codegen )
#Add depenencies
add_dependencies( ${_target}_generate ${_target}_generatecode )
add_dependencies( ${_target}_compilecode ${_target}_generate )
add_dependencies( ${_target}_codegen ${_target}_compilecode )
add_dependencies( ${_target}_generate ${_target}_codegenerator )
# add_dependencies( ${_target}_compilecode ${_target}_generate )
add_dependencies( ${_target}_codegen ${_target}_optimized )
endif()
endforeach()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment