cesium-native/CesiumGltf/CMakeLists.txt

64 lines
1.6 KiB
CMake
Raw Permalink Normal View History

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
${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
${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
)
set_target_properties(CesiumGltf
PROPERTIES
TEST_SOURCES "${CESIUM_GLTF_TEST_SOURCES}"
TEST_HEADERS "${CESIUM_GLTF_TEST_HEADERS}"
)
2020-12-08 11:02:09 +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
${CESIUM_GLTF_SOURCES}
${CESIUM_GLTF_HEADERS}
2020-12-08 11:02:09 +08:00
PUBLIC
${CESIUM_GLTF_PUBLIC_HEADERS}
2020-12-08 11:02:09 +08:00
)
target_include_directories(
CesiumGltf
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}
${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
)
target_link_libraries(CesiumGltf
PUBLIC
2021-04-13 21:24:53 +08:00
CesiumUtility
GSL
)
2021-03-04 06:48:09 +08:00
install(TARGETS CesiumGltf
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/CesiumGltf
)