-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added and exported CMake target - Main CMake file now has a target for the library. - Main library target has nlohmann_json as a dependency via find_package. - 'cmake --build . --target install' can now be ran, which neatly installs the library and produces config and target files for other targets to consume. * Changed test CMakeLists.txt to link against targets instead of including - All the test targets now properly link against library targets for nlohmann_json, Catch2 and fx-gltf. - Catch2 and nlohmann_json are found via find_package instead of being pulled from the thirdparty folder. * Removed third party libraries from repo These files are no longer needed in the repository, as they are now found via find_package in CMake. This requires that the user has them installed on their system and that CMake knows where to look for them, but using find_package is the proper way of referencing external libraries in CMake. * Revert "Removed third party libraries from repo" This reverts commit 81a8a30. * Added options in CMake files for installation and using installed deps * Made target_link_libraries signatures consistent in test CMakeLists.txt
- Loading branch information
1 parent
85ac827
commit 7568a3b
Showing
5 changed files
with
117 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
get_filename_component(fx-gltf_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH) | ||
include(CMakeFindDependencyMacro) | ||
|
||
find_dependency(nlohmann_json 3.5.0 REQUIRED) | ||
|
||
if(NOT TARGET fx-gltf::fx-gltf) | ||
include("${fx-gltf_CMAKE_DIR}/fx-gltfTargets.cmake") | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters