Mercurial > minori
comparison CMakeLists.txt @ 63:3d2decf093bb
*: fix many clang warnings
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Sun, 01 Oct 2023 06:39:47 -0400 |
parents | 4c6dd5999b39 |
children | fe719c109dbc |
comparison
equal
deleted
inserted
replaced
62:4c6dd5999b39 | 63:3d2decf093bb |
---|---|
99 elseif(WIN32) # Windows | 99 elseif(WIN32) # Windows |
100 list(APPEND SRC_FILES src/sys/win32/dark_theme.cpp) | 100 list(APPEND SRC_FILES src/sys/win32/dark_theme.cpp) |
101 endif() | 101 endif() |
102 | 102 |
103 add_executable(minori ${SRC_FILES}) | 103 add_executable(minori ${SRC_FILES}) |
104 # There's a bug in JFMC++ that keeps me from setting this to C++11. | 104 set_property(TARGET minori PROPERTY CXX_STANDARD 11) |
105 set_property(TARGET minori PROPERTY CXX_STANDARD 17) | |
106 set_property(TARGET minori PROPERTY AUTOMOC ON) | 105 set_property(TARGET minori PROPERTY AUTOMOC ON) |
107 set_property(TARGET minori PROPERTY AUTORCC ON) | 106 set_property(TARGET minori PROPERTY AUTORCC ON) |
108 | 107 |
109 target_include_directories(minori PUBLIC ${CURL_INCLUDE_DIRS} PRIVATE include dep/pugixml/src dep/animia/include) | 108 target_include_directories(minori PUBLIC ${CURL_INCLUDE_DIRS} PRIVATE include dep/pugixml/src dep/animia/include) |
110 if(USE_QT6) | 109 if(USE_QT6) |
111 target_include_directories(minori PUBLIC ${Qt6Widgets_INCLUDE_DIRS}) | 110 target_include_directories(minori PUBLIC ${Qt6Widgets_INCLUDE_DIRS}) |
112 else() | 111 else() |
113 target_include_directories(minori PUBLIC ${Qt5Widgets_INCLUDE_DIRS}) | 112 target_include_directories(minori PUBLIC ${Qt5Widgets_INCLUDE_DIRS}) |
114 endif() | 113 endif() |
115 target_compile_options(minori PRIVATE -Wall -Wextra -Wsuggest-override) | 114 target_compile_options(minori PRIVATE -Wall -Wpedantic -Wextra -Wsuggest-override) |
116 if(APPLE) | 115 if(APPLE) |
117 target_compile_definitions(minori PUBLIC MACOSX) | 116 target_compile_definitions(minori PUBLIC MACOSX) |
118 elseif(WIN32) | 117 elseif(WIN32) |
119 target_compile_definitions(minori PUBLIC WIN32) | 118 target_compile_definitions(minori PUBLIC WIN32) |
120 endif() | 119 endif() |