Skip to content
Snippets Groups Projects
Commit cf89ed29 authored by Jan Möbius's avatar Jan Möbius
Browse files

Use generator expressions to correct include path on windows for uic autogen

parent 41b52e0b
No related branches found
No related tags found
1 merge request!123Enable autouic
......@@ -137,9 +137,16 @@ acg_print_configure_header (ACG "ACG")
RECURSE_GROUPS( ${CMAKE_CURRENT_SOURCE_DIR} )
if ( NOT WIN32 )
# Allow targets depending on ACG find the autogenerated header files
target_include_directories( ACG PUBLIC
${CMAKE_CURRENT_BINARY_DIR}/ACG_autogen/include )
else()
# Allow targets depending on ACG find the autogenerated header files
target_include_directories( ACG PUBLIC
$<$<CONFIG:Debug>:${CMAKE_CURRENT_BINARY_DIR}/ACG_autogen/include_Debug/>
$<$<CONFIG:Release>:${CMAKE_CURRENT_BINARY_DIR}/ACG_autogen/include_Release/> )
endif()
target_link_libraries ( ACG ${OPENMESH_LIBRARIES}
${QT_LIBRARIES}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment