2020-12-08 11:02:09 +08:00
|
|
|
add_library(CesiumGltf "")
|
|
|
|
|
configure_cesium_library(CesiumGltf)
|
|
|
|
|
|
2021-12-03 06:45:48 +08:00
|
|
|
cesium_glob_files(CESIUM_GLTF_SOURCES
|
2021-12-04 00:09:05 +08:00
|
|
|
${CMAKE_CURRENT_LIST_DIR}/src/*.cpp
|
|
|
|
|
${CMAKE_CURRENT_LIST_DIR}/generated/src/*.cpp
|
2021-12-03 06:45:48 +08:00
|
|
|
)
|
|
|
|
|
cesium_glob_files(CESIUM_GLTF_HEADERS
|
2021-12-04 00:09:05 +08:00
|
|
|
${CMAKE_CURRENT_LIST_DIR}/src/*.h
|
|
|
|
|
${CMAKE_CURRENT_LIST_DIR}/generated/src/*.h
|
2021-12-03 06:45:48 +08:00
|
|
|
)
|
|
|
|
|
cesium_glob_files(CESIUM_GLTF_PUBLIC_HEADERS
|
|
|
|
|
${CMAKE_CURRENT_LIST_DIR}/include/CesiumGltf/*.h
|
|
|
|
|
${CMAKE_CURRENT_LIST_DIR}/generated/include/CesiumGltf/*.h
|
|
|
|
|
)
|
|
|
|
|
cesium_glob_files(CESIUM_GLTF_TEST_SOURCES
|
|
|
|
|
${CMAKE_CURRENT_LIST_DIR}/test/*.cpp
|
|
|
|
|
)
|
|
|
|
|
cesium_glob_files(CESIUM_GLTF_TEST_HEADERS
|
|
|
|
|
${CMAKE_CURRENT_LIST_DIR}/test/*.h
|
|
|
|
|
)
|
2021-03-03 03:22:02 +08:00
|
|
|
|
2021-03-04 09:47:31 +08:00
|
|
|
set_target_properties(CesiumGltf
|
|
|
|
|
PROPERTIES
|
2021-03-03 03:22:02 +08:00
|
|
|
TEST_SOURCES "${CESIUM_GLTF_TEST_SOURCES}"
|
|
|
|
|
TEST_HEADERS "${CESIUM_GLTF_TEST_HEADERS}"
|
|
|
|
|
)
|
2020-12-08 11:02:09 +08:00
|
|
|
|
2021-03-04 09:47:31 +08:00
|
|
|
set_target_properties(CesiumGltf
|
|
|
|
|
PROPERTIES
|
|
|
|
|
PUBLIC_HEADER "${CESIUM_GLTF_PUBLIC_HEADERS}"
|
|
|
|
|
)
|
|
|
|
|
|
2020-12-08 11:02:09 +08:00
|
|
|
target_sources(
|
|
|
|
|
CesiumGltf
|
|
|
|
|
PRIVATE
|
2021-03-03 03:22:02 +08:00
|
|
|
${CESIUM_GLTF_SOURCES}
|
|
|
|
|
${CESIUM_GLTF_HEADERS}
|
2020-12-08 11:02:09 +08:00
|
|
|
PUBLIC
|
2021-03-03 03:22:02 +08:00
|
|
|
${CESIUM_GLTF_PUBLIC_HEADERS}
|
2020-12-08 11:02:09 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
target_include_directories(
|
|
|
|
|
CesiumGltf
|
2021-03-03 03:22:02 +08:00
|
|
|
SYSTEM PUBLIC
|
|
|
|
|
${CMAKE_CURRENT_LIST_DIR}/include/
|
2021-12-03 06:45:48 +08:00
|
|
|
${CMAKE_CURRENT_LIST_DIR}/generated/include
|
2020-12-08 11:02:09 +08:00
|
|
|
PRIVATE
|
2021-12-03 06:45:48 +08:00
|
|
|
${CESIUM_NATIVE_RAPIDJSON_INCLUDE_DIR}
|
2021-03-03 03:22:02 +08:00
|
|
|
${CMAKE_CURRENT_LIST_DIR}/src
|
2021-12-03 06:45:48 +08:00
|
|
|
${CMAKE_CURRENT_LIST_DIR}/generated/src
|
2020-12-08 11:02:09 +08:00
|
|
|
)
|
|
|
|
|
|
2021-03-04 09:47:31 +08:00
|
|
|
target_link_libraries(CesiumGltf
|
|
|
|
|
PUBLIC
|
2021-04-13 21:24:53 +08:00
|
|
|
CesiumUtility
|
2021-03-03 03:22:02 +08:00
|
|
|
GSL
|
|
|
|
|
)
|
2021-03-04 06:48:09 +08:00
|
|
|
|
2021-03-04 09:47:31 +08:00
|
|
|
install(TARGETS CesiumGltf
|
|
|
|
|
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
|
|
|
|
PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/CesiumGltf
|
|
|
|
|
)
|