-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
33 lines (26 loc) · 1.17 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Minimum Version
cmake_minimum_required(VERSION 3.17)
# Project name
project(Zeus)
# C++ standard
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
# Includes
include(build/include/utils.cmake)
# Required libraries
find_package(glfw3 CONFIG REQUIRED)
find_package(glad REQUIRED)
find_package(imgui CONFIG REQUIRED)
find_package(imguizmo CONFIG REQUIRED)
find_package(implot CONFIG REQUIRED)
find_package(glm CONFIG REQUIRED)
find_package(spdlog REQUIRED)
# Clump source files from src
file(GLOB_RECURSE ZEUS_SRC "include/**.h" "src/**.cpp")
# Create executable from source
add_executable("Zeus" ${ZEUS_SRC} include/windows/battery_window.h src/windows/battery_window.cpp include/windows/general_window.h src/windows/general_window.cpp)
# Link target
target_link_directories("Zeus" PRIVATE "C:\\Program Files\\IVI Foundation\\VISA\\Win64\\Lib_x64\\msc")
target_include_directories("Zeus" PUBLIC include ${STB_INCLUDE_DIRS} "C:\\Program Files\\IVI Foundation\\VISA\\Win64\\Include")
target_link_libraries("Zeus" PUBLIC glfw glad::glad imgui::imgui imguizmo::imguizmo implot::implot glm::glm spdlog::spdlog_header_only visa64)
target_precompile_headers("Zeus" PUBLIC include/pch.h)