Commit f46f8b8d authored by Jan Möbius's avatar Jan Möbius

Include dependency for mutli configuration generators with type

parent cf89ed29
......@@ -64,9 +64,10 @@ acg_drop_templates (sources)
acg_add_library ( ${TYPENAME} SHARED ${ui} ${sources} ${headers})
set_target_properties ( ${TYPENAME} PROPERTIES MACOSX_RPATH 0 )
# Allow targets depending on ACG find the autogenerated header files
# Allow targets depending on the current type find the autogenerated header files from uic
target_include_directories( ${TYPENAME} PUBLIC
${CMAKE_CURRENT_BINARY_DIR}/${TYPENAME}_autogen/include )
$<$<CONFIG:Debug>:${CMAKE_CURRENT_BINARY_DIR}/${TYPENAME}_autogen/include_Debug/>
$<$<CONFIG:Release>:${CMAKE_CURRENT_BINARY_DIR}/${TYPENAME}_autogen/include_Release/> )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment