diff --git a/cmake/type.cmake b/cmake/type.cmake index c55d734682ef7742da9700e411733b85ce7809e3..020205f74ec47e0b4b274a391c4bb8e64d714d8d 100644 --- a/cmake/type.cmake +++ b/cmake/type.cmake @@ -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 ) + $<$:${CMAKE_CURRENT_BINARY_DIR}/${TYPENAME}_autogen/include_Debug/> + $<$:${CMAKE_CURRENT_BINARY_DIR}/${TYPENAME}_autogen/include_Release/> )