40 lines
1.0 KiB
CMake
40 lines
1.0 KiB
CMake
# 模块:domain、persistence、workspace、depth、animation(时间采样)
|
||
set(CORE_ROOT ${CMAKE_CURRENT_SOURCE_DIR})
|
||
|
||
set(CORE_SOURCES
|
||
${CORE_ROOT}/domain/Project.cpp
|
||
${CORE_ROOT}/workspace/ProjectWorkspace.cpp
|
||
${CORE_ROOT}/persistence/PersistentBinaryObject.cpp
|
||
${CORE_ROOT}/persistence/EntityPayloadBinary.cpp
|
||
${CORE_ROOT}/animation/AnimationSampling.cpp
|
||
${CORE_ROOT}/depth/DepthService.cpp
|
||
${CORE_ROOT}/net/ModelServerClient.cpp
|
||
)
|
||
|
||
set(CORE_HEADERS
|
||
${CORE_ROOT}/domain/Project.h
|
||
${CORE_ROOT}/workspace/ProjectWorkspace.h
|
||
${CORE_ROOT}/persistence/PersistentBinaryObject.h
|
||
${CORE_ROOT}/persistence/EntityPayloadBinary.h
|
||
${CORE_ROOT}/animation/AnimationSampling.h
|
||
${CORE_ROOT}/depth/DepthService.h
|
||
${CORE_ROOT}/net/ModelServerClient.h
|
||
)
|
||
|
||
add_library(core STATIC
|
||
${CORE_SOURCES}
|
||
${CORE_HEADERS}
|
||
)
|
||
|
||
target_include_directories(core
|
||
PUBLIC
|
||
${CORE_ROOT}
|
||
)
|
||
|
||
target_link_libraries(core
|
||
PUBLIC
|
||
${QT_PACKAGE}::Core
|
||
${QT_PACKAGE}::Gui
|
||
${QT_PACKAGE}::Network
|
||
)
|