comparison CMakeLists.txt @ 10:4b198a111713

Update things actually compile now btw qttest wants to fuck over the model but that might be my fault so /shrug
author Paper <mrpapersonic@gmail.com>
date Sat, 16 Sep 2023 02:06:01 -0400
parents 5c0397762b53
children fc1bf97c528b
comparison
equal deleted inserted replaced
9:5c0397762b53 10:4b198a111713
31 # Main window pages 31 # Main window pages
32 src/gui/pages/anime_list.cpp 32 src/gui/pages/anime_list.cpp
33 src/gui/pages/now_playing.cpp 33 src/gui/pages/now_playing.cpp
34 src/gui/pages/statistics.cpp 34 src/gui/pages/statistics.cpp
35 35
36 # Translate
37 src/gui/translate/anime.cpp
38
36 # Services (only AniList for now) 39 # Services (only AniList for now)
40 src/services/services.cpp
37 src/services/anilist.cpp 41 src/services/anilist.cpp
38 42
39 # Qt resources 43 # Qt resources
40 rc/icons.qrc 44 rc/icons.qrc
41 dep/darkstyle/darkstyle.qrc 45 dep/darkstyle/darkstyle.qrc
53 add_executable(weeaboo ${SRC_FILES}) 57 add_executable(weeaboo ${SRC_FILES})
54 set_property(TARGET weeaboo PROPERTY CXX_STANDARD 20) 58 set_property(TARGET weeaboo PROPERTY CXX_STANDARD 20)
55 set_property(TARGET weeaboo PROPERTY AUTOMOC ON) 59 set_property(TARGET weeaboo PROPERTY AUTOMOC ON)
56 set_property(TARGET weeaboo PROPERTY AUTORCC ON) 60 set_property(TARGET weeaboo PROPERTY AUTORCC ON)
57 61
58 find_package(Qt5 COMPONENTS Widgets REQUIRED) 62 find_package(Qt5 COMPONENTS Widgets Test REQUIRED)
59 find_package(CURL REQUIRED) 63 find_package(CURL REQUIRED)
60 64
61 set(LIBRARIES 65 set(LIBRARIES
62 ${Qt5Widgets_LIBRARIES} 66 ${Qt5Widgets_LIBRARIES}
67 ${Qt5Test_LIBRARIES}
63 ${CURL_LIBRARIES} 68 ${CURL_LIBRARIES}
64 anitomy 69 anitomy
65 ) 70 )
66 71
67 if(APPLE) 72 if(APPLE)
68 find_library(COCOA_LIBRARY Cocoa) 73 find_library(COCOA_LIBRARY Cocoa)
69 list(APPEND LIBRARIES ${COCOA_LIBRARY}) 74 list(APPEND LIBRARIES ${COCOA_LIBRARY})
70 endif() 75 endif()
71 76
72 target_include_directories(weeaboo PUBLIC ${Qt5Widgets_INCLUDE_DIRS} ${CURL_INCLUDE_DIRS} PRIVATE include) 77 target_include_directories(weeaboo PUBLIC ${Qt5Widgets_INCLUDE_DIRS} ${Qt5Test_INCLUDE_DIRS} ${CURL_INCLUDE_DIRS} PRIVATE include)
73 target_compile_options(weeaboo PRIVATE -Wall -Wextra -Wsuggest-override) 78 target_compile_options(weeaboo PRIVATE -Wall -Wextra -Wsuggest-override)
74 if(APPLE) 79 if(APPLE)
75 target_compile_definitions(weeaboo PUBLIC MACOSX) 80 target_compile_definitions(weeaboo PUBLIC MACOSX)
76 elseif(WIN32) 81 elseif(WIN32)
77 target_compile_definitions(weeaboo PUBLIC WIN32) 82 target_compile_definitions(weeaboo PUBLIC WIN32)