Add precompiled header

This commit is contained in:
grayson committed 2026-06-04 11:22:42 -05:00
1 parent 3977d85fee
commit fdbe1a07bb
3 files changed
+15 -2

No files matched your search

+3 -1
View File
@@ -1,5 +1,5 @@
# Watchful Eye app CMakeLists.txt # Watchful Eye app CMakeLists.txt
add_executable(WatchfulEye WIN32 "src/main.cpp") add_executable(WatchfulEye WIN32 "src/main.cpp" "src/pch.h")
set_property(TARGET WatchfulEye PROPERTY CXX_STANDARD 20) set_property(TARGET WatchfulEye PROPERTY CXX_STANDARD 20)
@@ -9,6 +9,8 @@ if(${CMAKE_BUILD_TYPE} STREQUAL "Debug")
set_property(TARGET WatchfulEye PROPERTY WIN32_EXECUTABLE FALSE) set_property(TARGET WatchfulEye PROPERTY WIN32_EXECUTABLE FALSE)
endif() endif()
target_precompile_headers(WatchfulEye PUBLIC "src/pch.h")
find_package(Git) find_package(Git)
execute_process(COMMAND ${GIT_EXECUTABLE} describe OUTPUT_VARIABLE APPVERSION OUTPUT_STRIP_TRAILING_WHITESPACE) execute_process(COMMAND ${GIT_EXECUTABLE} describe OUTPUT_VARIABLE APPVERSION OUTPUT_STRIP_TRAILING_WHITESPACE)
configure_file(src/version.h.in version.h) configure_file(src/version.h.in version.h)
+1 -1
View File
@@ -1,5 +1,5 @@
// Watchful Eye main file // Watchful Eye main file
#include <iostream> #include "pch.h"
#include "version.h" #include "version.h"
+11
View File
@@ -0,0 +1,11 @@
// Watchful Eye precompiled header
// STD
#include <iostream>
#include <string>
#include <format>
#include <chrono>
// Windows
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>