2022-07-04 23:52:05 +08:00
|
|
|
cmake_minimum_required(VERSION 3.16)
|
|
|
|
|
|
|
|
project(Q3D)
|
|
|
|
set(Eigen3_DIR D:/Microsoft/vcpkg/installed/x64-windows/share/eigen3)
|
|
|
|
SET(CMAKE_TOOLCHAIN_FILE D:/Microsoft/vcpkg/scripts/buildsystems/vcpkg.cmake)
|
|
|
|
|
2022-07-06 23:33:12 +08:00
|
|
|
find_package(ROOT REQUIRED Spectrum)
|
2022-07-04 23:52:05 +08:00
|
|
|
find_package(Eigen3 CONFIG REQUIRED)
|
|
|
|
|
|
|
|
include(${ROOT_USE_FILE})
|
|
|
|
include_directories(${PROJECT_SOURCE_DIR}/include)
|
|
|
|
|
|
|
|
file(GLOB sources ${PROJECT_SOURCE_DIR}/src/*.cpp)
|
|
|
|
file(GLOB headers ${PROJECT_SOURCE_DIR}/include/*.h)
|
|
|
|
|
|
|
|
add_executable(Q3D main.cpp ${sources} ${headers})
|
2022-07-06 23:33:12 +08:00
|
|
|
target_link_libraries(Q3D ${ROOT_LIBRARIES} Eigen3::Eigen)
|
2022-07-04 23:52:05 +08:00
|
|
|
|
|
|
|
install(TARGETS Q3D DESTINATION F:/NuclearAstroPhy/Q3D-Calibration)
|