diff --git a/CMakeLists.txt b/CMakeLists.txt index d72c18f..219e9a6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -215,12 +215,12 @@ if(BUILD_TOOLS AND WIN32) Meshconvert/Mesh.h Meshconvert/Mesh.cpp Meshconvert/SDKMesh.h) - target_include_directories(meshconvert PUBLIC MeshConvert Utilities) - target_link_libraries(meshconvert ${PROJECT_NAME} version.lib) + target_include_directories(meshconvert PRIVATE MeshConvert Utilities) + target_link_libraries(meshconvert PRIVATE ${PROJECT_NAME} version.lib) source_group(meshconvert REGULAR_EXPRESSION meshconvert/*.*) if(directxmath_FOUND) - target_link_libraries(meshconvert Microsoft::DirectXMath) + target_link_libraries(meshconvert PRIVATE Microsoft::DirectXMath) endif() endif() diff --git a/build/DirectXMesh-config.cmake.in b/build/DirectXMesh-config.cmake.in index 9e75cd1..f33e496 100644 --- a/build/DirectXMesh-config.cmake.in +++ b/build/DirectXMesh-config.cmake.in @@ -11,8 +11,11 @@ endif() include(CMakeFindDependencyMacro) if(MINGW OR (NOT WIN32)) - find_dependency(directx-headers CONFIG) - find_dependency(directxmath CONFIG) + find_dependency(directx-headers) + find_dependency(directxmath) +else() + find_package(directx-headers CONFIG QUIET) + find_package(directxmath CONFIG QUIET) endif() check_required_components("@PROJECT_NAME@")