20 lines
637 B
CMake
20 lines
637 B
CMake
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)
|
|
|
|
find_package(ROOT REQUIRED Spectrum)
|
|
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})
|
|
target_link_libraries(Q3D ${ROOT_LIBRARIES} Eigen3::Eigen)
|
|
|
|
install(TARGETS Q3D DESTINATION F:/NuclearAstroPhy/Q3D-Calibration)
|