1
0
Fork 0
mirror of https://github.com/gwm17/Daqromancy.git synced 2024-11-22 18:58:51 -05:00
Daqromancy/CMakeLists.txt

32 lines
1011 B
CMake
Raw Normal View History

2022-09-27 14:44:08 -04:00
cmake_minimum_required(VERSION 3.16) #pch support
set(CMAKE_CXX_STANDARD 20) #c++20
#currently default to debug. Eventually move to release
if(NOT CMAKE_BUILD_TYPE STREQUAL "Release")
set(CMAKE_BUILD_TYPE "Debug")
message("Building debug")
else()
message("Building release")
endif()
project(Daqromancy)
set(DY_BINARY_DIR ${CMAKE_CURRENT_SOURCE_DIR}/bin)
set(DY_LIBRARY_DIR ${CMAKE_CURRENT_SOURCE_DIR}/lib)
#find the CAEN pre-reqs
#For Windows, CAENDigitizer is installed non-globally (we assume default pathing cause why would ever be otherwise)
set(CAEN_WIN_LIB_PATH "C:/Program Files/CAEN/Digitizers/Library/lib/x86_64")
set(CAEN_WIN_INCL_PATH "C:/Program Files/CAEN/Digitizers/Library/include")
if(MSVC)
find_library(CAEN_DGTZ CAENDigitizer.lib HINTS ${CAEN_WIN_LIB_PATH} REQUIRED)
else()
find_library(CAEN_DGTZ CAENDigitizer REQUIRED)
endif()
add_subdirectory(vendor/glfw)
add_subdirectory(vendor/imgui)
add_subdirectory(vendor/glad)
add_subdirectory(vendor/yaml-cpp)
add_subdirectory(src)