Add precompiled header
This commit is contained in:
parent
3977d85fee
commit
fdbe1a07bb
@ -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,5 +1,5 @@
|
|||||||
// Watchful Eye main file
|
// Watchful Eye main file
|
||||||
#include <iostream>
|
#include "pch.h"
|
||||||
|
|
||||||
#include "version.h"
|
#include "version.h"
|
||||||
|
|
||||||
|
|||||||
11
WatchfulEye/src/pch.h
Normal file
11
WatchfulEye/src/pch.h
Normal 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>
|
||||||
Loading…
x
Reference in New Issue
Block a user