Mercurial > minori
comparison CMakeLists.txt @ 47:d8eb763e6661
information.cpp: add widgets to the list tab, and add an
"optional date" widget like taiga has so users can specify whether to
set the date or not
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Mon, 25 Sep 2023 00:43:38 -0400 |
parents | d0adc4aedfc8 |
children | 75c804f713b2 |
comparison
equal
deleted
inserted
replaced
46:d0adc4aedfc8 | 47:d8eb763e6661 |
---|---|
1 cmake_minimum_required(VERSION 3.16) | 1 cmake_minimum_required(VERSION 3.16) |
2 project(minori LANGUAGES CXX) | 2 project(minori LANGUAGES CXX) |
3 | 3 |
4 # this should check for the target system, rather than | |
5 # the host system, for cross-compiling purposes | |
4 if(APPLE) | 6 if(APPLE) |
5 enable_language(OBJCXX) | 7 enable_language(OBJCXX) |
6 endif() | 8 endif() |
7 | 9 |
8 add_subdirectory(dep/anitomy) | 10 add_subdirectory(dep/anitomy) |
49 src/gui/pages/statistics.cpp | 51 src/gui/pages/statistics.cpp |
50 | 52 |
51 # Custom widgets | 53 # Custom widgets |
52 src/gui/widgets/sidebar.cpp | 54 src/gui/widgets/sidebar.cpp |
53 src/gui/widgets/text.cpp | 55 src/gui/widgets/text.cpp |
56 src/gui/widgets/optional_date.cpp | |
54 | 57 |
55 # Dialogs | 58 # Dialogs |
56 src/gui/dialog/information.cpp | 59 src/gui/dialog/information.cpp |
57 src/gui/dialog/settings.cpp | 60 src/gui/dialog/settings.cpp |
58 src/gui/dialog/settings/application.cpp | 61 src/gui/dialog/settings/application.cpp |
78 ) | 81 ) |
79 elseif(WIN32) # Windows | 82 elseif(WIN32) # Windows |
80 list(APPEND SRC_FILES src/sys/win32/dark_theme.cpp) | 83 list(APPEND SRC_FILES src/sys/win32/dark_theme.cpp) |
81 endif() | 84 endif() |
82 | 85 |
83 add_executable(minori ${SRC_FILES}) | 86 add_executable(minori WIN32 ${SRC_FILES}) |
84 set_property(TARGET minori PROPERTY CXX_STANDARD 20) | 87 # There's a bug in JFMC++ that keeps me from setting this to C++11. |
88 set_property(TARGET minori PROPERTY CXX_STANDARD 17) | |
85 set_property(TARGET minori PROPERTY AUTOMOC ON) | 89 set_property(TARGET minori PROPERTY AUTOMOC ON) |
86 set_property(TARGET minori PROPERTY AUTORCC ON) | 90 set_property(TARGET minori PROPERTY AUTORCC ON) |
87 | 91 |
88 target_include_directories(minori PUBLIC ${Qt5Widgets_INCLUDE_DIRS} ${CURL_INCLUDE_DIRS} PRIVATE include) | 92 target_include_directories(minori PUBLIC ${Qt5Widgets_INCLUDE_DIRS} ${CURL_INCLUDE_DIRS} PRIVATE include) |
89 target_compile_options(minori PRIVATE -Wall -Wextra -Wsuggest-override) | 93 target_compile_options(minori PRIVATE -Wall -Wextra -Wsuggest-override) |