-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
38 lines (33 loc) · 1.18 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
cmake_minimum_required(VERSION 3.21)
project (CoreIO VERSION 0.4.1)
if(PROJECT_IS_TOP_LEVEL)
find_package(geoflow REQUIRED)
include_directories(${geoflow_INCLUDE_DIRS})
endif()
find_package(nlohmann_json 3.10.5 CONFIG REQUIRED)
include_directories(
${PROJECT_SOURCE_DIR}/thirdparty/include
)
include_directories(
${PROJECT_SOURCE_DIR}/thirdparty/meshoptimizer/src
)
include_directories(
${PROJECT_SOURCE_DIR}/thirdparty/tinygltf/
)
set(GF_PLUGIN_NAME ${PROJECT_NAME})
set(GF_PLUGIN_TARGET_NAME "gfp_core_io")
set(GF_PLUGIN_REGISTER ${PROJECT_SOURCE_DIR}/register.hpp)
geoflow_create_plugin(
nodes_obj.cpp
nodes_ply.cpp
nodes_cityjson.cpp
nodes_cityfb.cpp
nodes_gltf.cpp
${PROJECT_SOURCE_DIR}/thirdparty/meshoptimizer/src/indexgenerator.cpp
${PROJECT_SOURCE_DIR}/thirdparty/meshoptimizer/src/vcacheoptimizer.cpp
${PROJECT_SOURCE_DIR}/thirdparty/meshoptimizer/src/overdrawoptimizer.cpp
${PROJECT_SOURCE_DIR}/thirdparty/meshoptimizer/src/vfetchoptimizer.cpp
${PROJECT_SOURCE_DIR}/thirdparty/meshoptimizer/src/indexcodec.cpp
${PROJECT_SOURCE_DIR}/thirdparty/meshoptimizer/src/vertexcodec.cpp
)
target_link_libraries(gfp_core_io PRIVATE geoflow-core nlohmann_json::nlohmann_json)