-
Notifications
You must be signed in to change notification settings - Fork 214
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new Cesium3DTilesContent library.
- Loading branch information
Showing
30 changed files
with
140 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
add_library(Cesium3DTilesContent "") | ||
configure_cesium_library(Cesium3DTilesContent) | ||
|
||
cesium_glob_files(CESIUM_3DTILES_CONTENT_SOURCES | ||
${CMAKE_CURRENT_LIST_DIR}/src/*.cpp | ||
${CMAKE_CURRENT_LIST_DIR}/generated/src/*.cpp | ||
) | ||
cesium_glob_files(CESIUM_3DTILES_CONTENT_HEADERS | ||
${CMAKE_CURRENT_LIST_DIR}/src/*.h | ||
${CMAKE_CURRENT_LIST_DIR}/generated/src/*.h | ||
) | ||
cesium_glob_files(CESIUM_3DTILES_CONTENT_PUBLIC_HEADERS | ||
${CMAKE_CURRENT_LIST_DIR}/include/Cesium3DTilesContent/*.h | ||
${CMAKE_CURRENT_LIST_DIR}/generated/include/Cesium3DTilesContent/*.h | ||
) | ||
cesium_glob_files(CESIUM_3DTILES_CONTENT_TEST_SOURCES | ||
${CMAKE_CURRENT_LIST_DIR}/test/*.cpp | ||
) | ||
cesium_glob_files(CESIUM_3DTILES_CONTENT_TEST_HEADERS | ||
${CMAKE_CURRENT_LIST_DIR}/test/*.h | ||
) | ||
|
||
set_target_properties(Cesium3DTilesContent | ||
PROPERTIES | ||
TEST_SOURCES "${CESIUM_3DTILES_CONTENT_TEST_SOURCES}" | ||
TEST_HEADERS "${CESIUM_3DTILES_CONTENT_TEST_HEADERS}" | ||
TEST_DATA_DIR ${CMAKE_CURRENT_LIST_DIR}/test/data | ||
) | ||
|
||
set_target_properties(Cesium3DTilesContent | ||
PROPERTIES | ||
PUBLIC_HEADER "${CESIUM_3DTILES_CONTENT_PUBLIC_HEADERS}" | ||
) | ||
|
||
target_sources( | ||
Cesium3DTilesContent | ||
PRIVATE | ||
${CESIUM_3DTILES_CONTENT_SOURCES} | ||
${CESIUM_3DTILES_CONTENT_HEADERS} | ||
PUBLIC | ||
${CESIUM_3DTILES_CONTENT_PUBLIC_HEADERS} | ||
) | ||
|
||
target_include_directories( | ||
Cesium3DTilesContent | ||
SYSTEM PUBLIC | ||
${CMAKE_CURRENT_LIST_DIR}/include | ||
${CMAKE_CURRENT_LIST_DIR}/generated/include | ||
PRIVATE | ||
${CMAKE_CURRENT_LIST_DIR}/src | ||
${CMAKE_CURRENT_LIST_DIR}/generated/src | ||
) | ||
|
||
target_link_libraries(Cesium3DTilesContent | ||
PUBLIC | ||
CesiumAsync | ||
CesiumGeometry | ||
CesiumGltf | ||
CesiumGltfReader | ||
) | ||
|
||
install(TARGETS Cesium3DTilesContent | ||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} | ||
PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/Cesium3DTilesContent | ||
) |
3 changes: 2 additions & 1 deletion
3
...DTilesSelection/src/B3dmToGltfConverter.h → ...esium3DTilesContent/B3dmToGltfConverter.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ilesSelection/src/BinaryToGltfConverter.h → ...ium3DTilesContent/BinaryToGltfConverter.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
Cesium3DTilesContent/include/Cesium3DTilesContent/Library.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#pragma once | ||
|
||
/** | ||
* @brief Classes that support the 3D Tiles tile content types. | ||
*/ | ||
namespace Cesium3DTilesContent {} | ||
|
||
#if defined(_WIN32) && defined(CESIUM_SHARED) | ||
#ifdef CESIUM3DTILESCONTENT_BUILDING | ||
#define CESIUM3DTILESCONTENT_API __declspec(dllexport) | ||
#else | ||
#define CESIUM3DTILESCONTENT_API __declspec(dllimport) | ||
#endif | ||
#else | ||
#define CESIUM3DTILESCONTENT_API | ||
#endif |
3 changes: 2 additions & 1 deletion
3
...DTilesSelection/src/PntsToGltfConverter.h → ...esium3DTilesContent/PntsToGltfConverter.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 2 additions & 3 deletions
5
...ilesSelection/src/B3dmToGltfConverter.cpp → ...DTilesContent/src/B3dmToGltfConverter.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...esSelection/src/BinaryToGltfConverter.cpp → ...ilesContent/src/BinaryToGltfConverter.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,6 +47,7 @@ target_link_libraries_system( | |
PUBLIC | ||
glm | ||
uriparser | ||
spdlog | ||
) | ||
|
||
target_link_libraries(CesiumUtility | ||
|
Oops, something went wrong.