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

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

parent 41b52e0b
......@@ -137,9 +137,16 @@ acg_print_configure_header (ACG "ACG")
RECURSE_GROUPS( ${CMAKE_CURRENT_SOURCE_DIR} )
# Allow targets depending on ACG find the autogenerated header files
target_include_directories( ACG PUBLIC
${CMAKE_CURRENT_BINARY_DIR}/ACG_autogen/include )
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}
......
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