Add dependencies
This commit is contained in:
3
3rdParty/CMakeLists.txt
vendored
3
3rdParty/CMakeLists.txt
vendored
@@ -7,3 +7,6 @@ add_subdirectory(spdlog)
|
||||
add_subdirectory(assimp)
|
||||
add_subdirectory(magic-enum)
|
||||
add_subdirectory(yaml-cpp)
|
||||
add_subdirectory(pugixml)
|
||||
add_subdirectory(opencv)
|
||||
add_subdirectory(PlatformFolders)
|
||||
10
3rdParty/PlatformFolders/CMakeLists.txt
vendored
Normal file
10
3rdParty/PlatformFolders/CMakeLists.txt
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
include(FetchContent)
|
||||
|
||||
FetchContent_Declare(
|
||||
platform_folders
|
||||
GIT_REPOSITORY https://github.com/sago007/PlatformFolders.git
|
||||
GIT_TAG 4.2.0
|
||||
GIT_SHALLOW TRUE
|
||||
)
|
||||
set(PLATFORMFOLDERS_BUILD_TESTING OFF)
|
||||
FetchContent_MakeAvailable(platform_folders)
|
||||
10
3rdParty/opencv/CMakeLists.txt
vendored
Normal file
10
3rdParty/opencv/CMakeLists.txt
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
Find_Package(OpenCV)
|
||||
if (NOT OpenCV_FOUND)
|
||||
FetchContent_Declare(
|
||||
opencv
|
||||
GIT_REPOSITORY https://github.com/opencv/opencv.git
|
||||
GIT_TAG v4.5.0
|
||||
GIT_SHALLOW TRUE
|
||||
)
|
||||
FetchContent_MakeAvailable(opencv)
|
||||
endif()
|
||||
10
3rdParty/pugixml/CMakeLists.txt
vendored
Normal file
10
3rdParty/pugixml/CMakeLists.txt
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
include(FetchContent)
|
||||
|
||||
FetchContent_Declare(
|
||||
pugixml
|
||||
GIT_REPOSITORY https://github.com/zeux/pugixml.git
|
||||
GIT_TAG v1.11.4
|
||||
GIT_SHALLOW TRUE
|
||||
)
|
||||
set(PUGIXML_BUILD_TESTS OFF)
|
||||
FetchContent_MakeAvailable(pugixml)
|
||||
@@ -1,5 +1,7 @@
|
||||
cmake_minimum_required(VERSION 3.16 FATAL_ERROR)
|
||||
|
||||
set(CMAKE_POLICY_DEFAULT_CMP0077 NEW)
|
||||
|
||||
if(NOT WIN32)
|
||||
find_package(ECM REQUIRED NO_MODULE)
|
||||
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
|
||||
@@ -48,7 +50,8 @@ if (NOT ANDROID AND NOT IOS)
|
||||
target_link_libraries(openVulkanoCpp PRIVATE glfw)
|
||||
endif()
|
||||
|
||||
target_link_libraries(openVulkanoCpp PRIVATE magic_enum yaml-cpp spdlog glm assimp)
|
||||
target_include_directories(openVulkanoCpp PRIVATE ${OpenCV_INCLUDE_DIRS})
|
||||
target_link_libraries(openVulkanoCpp PRIVATE magic_enum yaml-cpp spdlog glm assimp pugixml ${OpenCV_LIBS} sago::platform_folders)
|
||||
|
||||
add_compile_definitions(GLM_FORCE_INTRINSICS)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user