-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
28 lines (21 loc) · 755 Bytes
/
CMakeLists.txt
File metadata and controls
28 lines (21 loc) · 755 Bytes
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
cmake_minimum_required(VERSION 4.0)
set(CMAKE_CXX_STANDARD 20)
if (WIN32)
project(split_loaf LANGUAGES C CXX RC)
enable_language(RC)
add_executable(split-loaf
src/app/main.cpp
src/core/Platform.cpp
src/core/Backend.hpp
src/win/WinBackend.cpp
src/win/WinHooks.cpp
src/win/WinTray.cpp
src/win/WinApp.cpp
src/win/WinSettings.cpp
src/res/resource.rc
)
target_link_options(split-loaf PRIVATE -static -static-libgcc -static-libstdc++)
target_include_directories(split-loaf PUBLIC src)
target_link_libraries(split-loaf user32 gdi32 shell32)
set_target_properties(split-loaf PROPERTIES WIN32_EXECUTABLE TRUE)
endif()