geopro/src/core/CMakeLists.txt

21 lines
742 B
CMake
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

find_package(Eigen3 CONFIG REQUIRED)
find_package(PROJ CONFIG REQUIRED)
add_library(geopro_core STATIC
geo/LocalFrame.cpp
geo/GeoLocalFrame.cpp
geo/CrsTransform.cpp
model/ColorScale.cpp
algo/IdwInterpolator.cpp
algo/VolumeBuilder.cpp
algo/GprVolumeBuilder.cpp
)
target_include_directories(geopro_core PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
target_link_libraries(geopro_core PUBLIC Eigen3::Eigen PROJ::proj)
target_compile_features(geopro_core PUBLIC cxx_std_17)
# 铁律core 为纯业务逻辑层,绝不链接 Qt / VTK。
# 顶层全局开启了 AUTOMOC/UIC/RCC为 view/app 服务core 与 Qt 无关,显式关闭,保持纯净。
set_target_properties(geopro_core PROPERTIES AUTOMOC OFF AUTOUIC OFF AUTORCC OFF)