Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
VkCV Framework
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Vulkan2021
VkCV Framework
Commits
a31eb56d
Verified
Commit
a31eb56d
authored
3 years ago
by
Tobias Frisch
Browse files
Options
Downloads
Patches
Plain Diff
[
#26
] Commented the cmake file of the asset_loader
Signed-off-by:
Tobias Frisch
<
tfrisch@uni-koblenz.de
>
parent
e4cc7674
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!19
Resolve "Asset Loading"
Pipeline
#24973
failed
3 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/asset_loader/CMakeLists.txt
+7
-2
7 additions, 2 deletions
modules/asset_loader/CMakeLists.txt
with
7 additions
and
2 deletions
modules/asset_loader/CMakeLists.txt
+
7
−
2
View file @
a31eb56d
cmake_minimum_required
(
VERSION 3.16
)
project
(
vkcv_asset_loader
)
# setting c++ standard for the
project
# setting c++ standard for the
module
set
(
CMAKE_CXX_STANDARD 17
)
set
(
CMAKE_CXX_STANDARD_REQUIRED ON
)
set
(
vkcv_asset_loader_source
${
PROJECT_SOURCE_DIR
}
/src
)
set
(
vkcv_asset_loader_include
${
PROJECT_SOURCE_DIR
}
/include
)
# Add source and header files to the module
set
(
vkcv_asset_loader_sources
${
vkcv_asset_loader_include
}
/vkcv/asset/asset_loader.hpp
${
vkcv_asset_loader_source
}
/vkcv/asset/asset_loader.cpp
)
# Setup some path variables to load libraries
set
(
vkcv_asset_loader_lib lib
)
set
(
vkcv_asset_loader_lib_path
${
PROJECT_SOURCE_DIR
}
/
${
vkcv_asset_loader_lib
}
)
# Check and load NLOHMANN_JSON
if
(
EXISTS
"
${
vkcv_asset_loader_lib_path
}
/json"
)
set
(
JSON_BuildTests OFF CACHE INTERNAL
""
)
...
...
@@ -26,6 +29,7 @@ else()
message
(
WARNING
"NLOHMANN_JSON is required..! Update the submodules!"
)
endif
()
# Check and load FX-GLTF
if
(
EXISTS
"
${
vkcv_asset_loader_lib_path
}
/fx-gltf"
)
set
(
FX_GLTF_INSTALL OFF
)
set
(
FX_GLTF_USE_INSTALLED_DEPS OFF
)
...
...
@@ -38,9 +42,10 @@ else()
message
(
WARNING
"FX-GLTF is required..! Update the submodules!"
)
endif
()
# adding source files to the
project
# adding source files to the
module
add_library
(
vkcv_asset_loader STATIC
${
vkcv_asset_loader_sources
}
)
# link the required libraries to the module
target_link_libraries
(
vkcv_asset_loader
${
vkcv_asset_loader_libraries
}
)
# add the own include directory for public headers
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment