Mercurial > minori
comparison CMakeLists.txt @ 11:fc1bf97c528b
*: use C++11 standard
I've been meaning to do this for a while, but I didn't want to reimplement
the filesystem code. Now we are on C++11 and most compilers from the past 5 centuries should support this now
| author | Paper <mrpapersonic@gmail.com> |
|---|---|
| date | Sun, 17 Sep 2023 06:14:30 -0400 |
| parents | 4b198a111713 |
| children | cf6a73a5ba1c |
comparison
equal
deleted
inserted
replaced
| 10:4b198a111713 | 11:fc1bf97c528b |
|---|---|
| 1 cmake_minimum_required(VERSION 3.16) | 1 cmake_minimum_required(VERSION 3.16) |
| 2 project(weeaboo LANGUAGES CXX OBJCXX) | 2 project(minori LANGUAGES CXX OBJCXX) |
| 3 | 3 |
| 4 add_subdirectory(dep/anitomy) | 4 add_subdirectory(dep/anitomy) |
| 5 | 5 |
| 6 set(SRC_FILES | 6 set(SRC_FILES |
| 7 # Main entrypoint | 7 # Main entrypoint |
| 52 ) | 52 ) |
| 53 elseif(WIN32) # Windows | 53 elseif(WIN32) # Windows |
| 54 list(APPEND SRC_FILES src/sys/win32/dark_theme.cpp) | 54 list(APPEND SRC_FILES src/sys/win32/dark_theme.cpp) |
| 55 endif() | 55 endif() |
| 56 | 56 |
| 57 add_executable(weeaboo ${SRC_FILES}) | 57 add_executable(minori ${SRC_FILES}) |
| 58 set_property(TARGET weeaboo PROPERTY CXX_STANDARD 20) | 58 set_property(TARGET minori PROPERTY CXX_STANDARD 11) |
| 59 set_property(TARGET weeaboo PROPERTY AUTOMOC ON) | 59 set_property(TARGET minori PROPERTY AUTOMOC ON) |
| 60 set_property(TARGET weeaboo PROPERTY AUTORCC ON) | 60 set_property(TARGET minori PROPERTY AUTORCC ON) |
| 61 | 61 |
| 62 find_package(Qt5 COMPONENTS Widgets Test REQUIRED) | 62 find_package(Qt5 COMPONENTS Widgets Test REQUIRED) |
| 63 find_package(CURL REQUIRED) | 63 find_package(CURL REQUIRED) |
| 64 | 64 |
| 65 set(LIBRARIES | 65 set(LIBRARIES |
| 72 if(APPLE) | 72 if(APPLE) |
| 73 find_library(COCOA_LIBRARY Cocoa) | 73 find_library(COCOA_LIBRARY Cocoa) |
| 74 list(APPEND LIBRARIES ${COCOA_LIBRARY}) | 74 list(APPEND LIBRARIES ${COCOA_LIBRARY}) |
| 75 endif() | 75 endif() |
| 76 | 76 |
| 77 target_include_directories(weeaboo PUBLIC ${Qt5Widgets_INCLUDE_DIRS} ${Qt5Test_INCLUDE_DIRS} ${CURL_INCLUDE_DIRS} PRIVATE include) | 77 target_include_directories(minori PUBLIC ${Qt5Widgets_INCLUDE_DIRS} ${Qt5Test_INCLUDE_DIRS} ${CURL_INCLUDE_DIRS} PRIVATE include) |
| 78 target_compile_options(weeaboo PRIVATE -Wall -Wextra -Wsuggest-override) | 78 target_compile_options(minori PRIVATE -Wall -Wextra -Wsuggest-override) |
| 79 if(APPLE) | 79 if(APPLE) |
| 80 target_compile_definitions(weeaboo PUBLIC MACOSX) | 80 target_compile_definitions(minori PUBLIC MACOSX) |
| 81 elseif(WIN32) | 81 elseif(WIN32) |
| 82 target_compile_definitions(weeaboo PUBLIC WIN32) | 82 target_compile_definitions(minori PUBLIC WIN32) |
| 83 endif() | 83 endif() |
| 84 target_link_libraries(weeaboo ${LIBRARIES}) | 84 target_link_libraries(minori ${LIBRARIES}) |
