Mercurial > minori
comparison CMakeLists.txt @ 55:d10b6c6b432e
add xml lib, we will need to use it eventually
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Tue, 26 Sep 2023 12:37:08 -0400 |
parents | 466ac9870df9 |
children | 3c802806b74a |
comparison
equal
deleted
inserted
replaced
54:466ac9870df9 | 55:d10b6c6b432e |
---|---|
6 if(APPLE) | 6 if(APPLE) |
7 enable_language(OBJCXX) | 7 enable_language(OBJCXX) |
8 endif() | 8 endif() |
9 | 9 |
10 add_subdirectory(dep/anitomy) | 10 add_subdirectory(dep/anitomy) |
11 add_subdirectory(dep/pugixml) | |
11 | 12 |
12 # Fix for mingw64 | 13 # Fix for mingw64 |
13 list(APPEND CMAKE_FIND_LIBRARY_SUFFIXES ".dll.a" ".a") | 14 list(APPEND CMAKE_FIND_LIBRARY_SUFFIXES ".dll.a" ".a") |
14 | 15 |
15 find_package(Qt5 COMPONENTS Widgets REQUIRED) | 16 find_package(Qt5 COMPONENTS Widgets REQUIRED) |
93 # There's a bug in JFMC++ that keeps me from setting this to C++11. | 94 # There's a bug in JFMC++ that keeps me from setting this to C++11. |
94 set_property(TARGET minori PROPERTY CXX_STANDARD 17) | 95 set_property(TARGET minori PROPERTY CXX_STANDARD 17) |
95 set_property(TARGET minori PROPERTY AUTOMOC ON) | 96 set_property(TARGET minori PROPERTY AUTOMOC ON) |
96 set_property(TARGET minori PROPERTY AUTORCC ON) | 97 set_property(TARGET minori PROPERTY AUTORCC ON) |
97 | 98 |
98 target_include_directories(minori PUBLIC ${Qt5Widgets_INCLUDE_DIRS} ${CURL_INCLUDE_DIRS} PRIVATE include) | 99 target_include_directories(minori PUBLIC ${Qt5Widgets_INCLUDE_DIRS} ${CURL_INCLUDE_DIRS} PRIVATE include dep/pugixml/src) |
99 target_compile_options(minori PRIVATE -Wall -Wextra -Wsuggest-override) | 100 target_compile_options(minori PRIVATE -Wall -Wextra -Wsuggest-override) |
100 if(APPLE) | 101 if(APPLE) |
101 target_compile_definitions(minori PUBLIC MACOSX) | 102 target_compile_definitions(minori PUBLIC MACOSX) |
102 elseif(WIN32) | 103 elseif(WIN32) |
103 target_compile_definitions(minori PUBLIC WIN32) | 104 target_compile_definitions(minori PUBLIC WIN32) |