mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-09 05:34:34 +00:00
uses local cache for assets now so should be able to produce an offline build with vcpkg. Only a couple of libraries left that are too big, and the vcpkg repo itself has files that are blocked from the repo. We could get around both issues by utilizing a submodule
9 lines
670 B
CMake
9 lines
670 B
CMake
file(GLOB COLLADA_SOURCES "src/1.4/dom/*.cpp" "src/dae/*.cpp" "src/modules/LIBXMLPlugin/*.cpp"
|
|
"src/modules/stdErrPlugin/*.cpp" "src/modules/STLDatabase/*.cpp")
|
|
|
|
add_library(collada STATIC ${COLLADA_SOURCES})
|
|
target_include_directories(collada PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include ${CMAKE_CURRENT_SOURCE_DIR}/include/1.4)
|
|
target_compile_definitions(collada PUBLIC DOM_INCLUDE_TINYXML PCRE_STATIC)
|
|
find_package(tinyxml2 CONFIG REQUIRED)
|
|
find_package(unofficial-pcre CONFIG REQUIRED)
|
|
target_link_libraries(collada PUBLIC tinyxml2::tinyxml2 unofficial::pcre::pcre unofficial::pcre::pcre16 unofficial::pcre::pcre32 unofficial::pcre::pcrecpp)
|