-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
34 lines (25 loc) · 868 Bytes
/
CMakeLists.txt
File metadata and controls
34 lines (25 loc) · 868 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
29
30
31
32
33
34
cmake_minimum_required(VERSION 3.28)
project(ScreenTimerProject LANGUAGES CXX)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
set(BUILD_SHARED_LIBS OFF)
add_definitions(-DSFML_STATIC)
include(FetchContent)
FetchContent_Declare(SFML
GIT_REPOSITORY https://github.com/SFML/SFML.git
GIT_TAG 3.0.2
GIT_SHALLOW ON
EXCLUDE_FROM_ALL
SYSTEM)
set(SFML_USE_STATIC_STD_LIBS TRUE CACHE BOOL "" FORCE)
FetchContent_MakeAvailable(SFML)
add_executable(ScreenTimer
gui/UIElement/uiElement.cpp
gui/TextBox/textBox.cpp
gui/MouseHandle/mouseHandle.cpp
gui/LabelElement/labelElement.cpp
src/RenderHandler/renderHandler.cpp
src/main.cpp
extlibs/tinyfiledialogs/tinyfiledialogs.cpp)
target_compile_features(ScreenTimer PRIVATE cxx_std_17)
target_link_options(ScreenTimer PRIVATE -mwindows)
target_link_libraries(ScreenTimer PRIVATE SFML::Graphics)