Mercurial > minori
comparison CMakeLists.txt @ 57:3c802806b74a
*: merge
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Thu, 28 Sep 2023 13:09:11 -0400 |
parents | 6ff7aabeb9d7 d10b6c6b432e |
children | 4c6dd5999b39 |
comparison
equal
deleted
inserted
replaced
56:6ff7aabeb9d7 | 57:3c802806b74a |
---|---|
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/animia) | 11 add_subdirectory(dep/animia) |
12 add_subdirectory(dep/pugixml) | |
12 | 13 |
13 # Fix for mingw64 | 14 # Fix for mingw64 |
14 list(APPEND CMAKE_FIND_LIBRARY_SUFFIXES ".dll.a" ".a") | 15 list(APPEND CMAKE_FIND_LIBRARY_SUFFIXES ".dll.a" ".a") |
15 | 16 |
16 find_package(Qt5 COMPONENTS Widgets REQUIRED) | 17 find_package(Qt5 COMPONENTS Widgets REQUIRED) |
18 | 19 |
19 set(LIBRARIES | 20 set(LIBRARIES |
20 ${Qt5Widgets_LIBRARIES} | 21 ${Qt5Widgets_LIBRARIES} |
21 ${CURL_LIBRARIES} | 22 ${CURL_LIBRARIES} |
22 anitomy | 23 anitomy |
24 animia | |
23 ) | 25 ) |
24 | 26 |
25 # We need Cocoa for some OS X stuff | 27 # We need Cocoa for some OS X stuff |
26 if(APPLE) | 28 if(APPLE) |
27 find_library(COCOA_LIBRARY Cocoa) | 29 find_library(COCOA_LIBRARY Cocoa) |
94 # There's a bug in JFMC++ that keeps me from setting this to C++11. | 96 # There's a bug in JFMC++ that keeps me from setting this to C++11. |
95 set_property(TARGET minori PROPERTY CXX_STANDARD 17) | 97 set_property(TARGET minori PROPERTY CXX_STANDARD 17) |
96 set_property(TARGET minori PROPERTY AUTOMOC ON) | 98 set_property(TARGET minori PROPERTY AUTOMOC ON) |
97 set_property(TARGET minori PROPERTY AUTORCC ON) | 99 set_property(TARGET minori PROPERTY AUTORCC ON) |
98 | 100 |
99 target_include_directories(minori PUBLIC ${Qt5Widgets_INCLUDE_DIRS} ${CURL_INCLUDE_DIRS} PRIVATE include) | 101 target_include_directories(minori PUBLIC ${Qt5Widgets_INCLUDE_DIRS} ${CURL_INCLUDE_DIRS} PRIVATE include dep/pugixml/src) |
100 target_compile_options(minori PRIVATE -Wall -Wextra -Wsuggest-override) | 102 target_compile_options(minori PRIVATE -Wall -Wextra -Wsuggest-override) |
101 if(APPLE) | 103 if(APPLE) |
102 target_compile_definitions(minori PUBLIC MACOSX) | 104 target_compile_definitions(minori PUBLIC MACOSX) |
103 elseif(WIN32) | 105 elseif(WIN32) |
104 target_compile_definitions(minori PUBLIC WIN32) | 106 target_compile_definitions(minori PUBLIC WIN32) |