Skip to content

Commit

Permalink
Merge branch 'main' into mjcarroll/fix_uuid_msvc
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Carroll <[email protected]>
  • Loading branch information
mjcarroll authored Nov 10, 2023
2 parents ad893a2 + 09491f5 commit f054b07
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions graphics/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,17 @@ target_link_libraries(${graphics_target}
PRIVATE
${GzAssimp_LIBRARIES}
GTS::GTS
FreeImage::FreeImage)
FreeImage::FreeImage
TINYXML2::TINYXML2
)

gz_build_tests(
TYPE UNIT
SOURCES ${gtest_sources}
LIB_DEPS
${graphics_target}
gz-common${GZ_COMMON_VER}-testing
TINYXML2::TINYXML2
)

# Assimp doesn't offer preprocessor version, use cmake to set a compatibility
Expand All @@ -28,16 +31,3 @@ if(${GzAssimp_VERSION} STRLESS "5.2.0")
target_compile_definitions(UNIT_AssimpLoader_TEST PRIVATE GZ_ASSIMP_PRE_5_2_0)
endif()
endif()


# If we are using an external copy of tinyxml2, add its imported target
target_link_libraries(${graphics_target}
PRIVATE
TINYXML2::TINYXML2)

# The collada exporter test uses tinyxml2, so we must link it if we're using
# an external copy. The graphics target considers tinyxml2 to be a private
# dependency, so it will not automatically get linked to this test.
if(TARGET UNIT_ColladaExporter_TEST)
target_link_libraries(UNIT_ColladaExporter_TEST TINYXML2::TINYXML2)
endif()

0 comments on commit f054b07

Please sign in to comment.