more work on asset registry and importing process
This commit is contained in:
@@ -23,15 +23,13 @@ file(GLOB_RECURSE HEADERS ${CMAKE_SOURCE_DIR}/src/*.h)
|
||||
add_subdirectory(_ThirdParty/entt)
|
||||
add_subdirectory(_ThirdParty/fmt)
|
||||
add_subdirectory(_ThirdParty/spdlog)
|
||||
|
||||
set(JSON_BuildTests OFF CACHE INTERNAL "")
|
||||
add_subdirectory(_ThirdParty/json)
|
||||
|
||||
add_subdirectory(_ThirdParty/uuid)
|
||||
|
||||
add_subdirectory(_ThirdParty/nfd)
|
||||
|
||||
set (ASSIMP_INSTALL OFF)
|
||||
add_subdirectory(_ThirdParty/assimp)
|
||||
if(UNIX)
|
||||
find_path(UNZIP_PATH unzip.h PATHS
|
||||
/usr/include
|
||||
@@ -40,11 +38,11 @@ if(UNIX)
|
||||
if(NOT UNZIP_PATH)
|
||||
include_directories(/usr/include/minizip)
|
||||
endif()
|
||||
|
||||
target_compile_options(assimp PRIVATE
|
||||
-Wno-unused-but-set-variable
|
||||
)
|
||||
endif()
|
||||
add_subdirectory(_ThirdParty/assimp)
|
||||
target_compile_options(assimp PRIVATE
|
||||
-Wno-unused-but-set-variable
|
||||
)
|
||||
|
||||
add_executable(${PROJECT_NAME}
|
||||
${IMGUI_SOURCES}
|
||||
@@ -54,13 +52,6 @@ add_executable(${PROJECT_NAME}
|
||||
src/ProjectManifestFile.cpp
|
||||
src/ProjectManifestFile.h)
|
||||
|
||||
add_custom_target(copy_resources
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_directory
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/resources"
|
||||
"${CMAKE_CURRENT_BINARY_DIR}/resources"
|
||||
COMMENT "Copying resources..."
|
||||
)
|
||||
|
||||
target_link_libraries(${PROJECT_NAME} glfw spdlog assimp glm EnTT fmt nfd uuid)
|
||||
target_include_directories(${PROJECT_NAME} PRIVATE ${ASSIMP_INCLUDE_INSTALL_DIR})
|
||||
target_include_directories(${PROJECT_NAME} PRIVATE _ThirdParty/json/single_include)
|
||||
|
||||
Reference in New Issue
Block a user