2024-05-29 10:38:57 +02:00
|
|
|
cmake_minimum_required(VERSION 3.9...3.24 FATAL_ERROR)
|
2023-07-25 14:35:57 +02:00
|
|
|
|
2024-04-12 13:34:20 +02:00
|
|
|
########################################
|
2024-03-28 15:36:14 +01:00
|
|
|
|
2024-05-29 10:38:57 +02:00
|
|
|
if (TOMATO_MAIN_SO)
|
|
|
|
add_library(tomato MODULE)
|
|
|
|
target_compile_definitions(tomato PUBLIC TOMATO_MAIN_SO)
|
|
|
|
else()
|
|
|
|
add_executable(tomato)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
target_sources(tomato PUBLIC
|
2023-07-30 16:00:55 +02:00
|
|
|
./main.cpp
|
|
|
|
./icon.rc
|
2023-07-26 12:24:18 +02:00
|
|
|
|
2024-05-30 11:46:58 +02:00
|
|
|
./json_to_config.hpp
|
|
|
|
./json_to_config.cpp
|
|
|
|
|
2023-07-30 16:00:55 +02:00
|
|
|
./screen.hpp
|
|
|
|
./start_screen.hpp
|
|
|
|
./start_screen.cpp
|
|
|
|
./main_screen.hpp
|
|
|
|
./main_screen.cpp
|
2023-07-26 12:55:50 +02:00
|
|
|
|
2023-07-29 20:39:31 +02:00
|
|
|
./tox_client.hpp
|
|
|
|
./tox_client.cpp
|
|
|
|
./auto_dirty.hpp
|
|
|
|
./auto_dirty.cpp
|
2023-07-26 20:09:57 +02:00
|
|
|
|
2023-08-02 19:24:51 +02:00
|
|
|
./theme.hpp
|
|
|
|
|
2023-07-30 16:00:55 +02:00
|
|
|
./image_loader.hpp
|
2023-10-09 21:17:00 +02:00
|
|
|
./image_loader.cpp
|
2023-07-30 16:00:55 +02:00
|
|
|
./image_loader_sdl_bmp.hpp
|
|
|
|
./image_loader_sdl_bmp.cpp
|
2023-08-01 20:17:38 +02:00
|
|
|
./image_loader_stb.hpp
|
|
|
|
./image_loader_stb.cpp
|
2023-08-02 15:06:19 +02:00
|
|
|
./image_loader_webp.hpp
|
|
|
|
./image_loader_webp.cpp
|
2024-03-04 13:38:55 +01:00
|
|
|
./image_loader_qoi.hpp
|
|
|
|
./image_loader_qoi.cpp
|
2024-04-16 00:45:12 +02:00
|
|
|
./image_loader_sdl_image.hpp
|
|
|
|
./image_loader_sdl_image.cpp
|
2023-07-30 16:00:55 +02:00
|
|
|
|
|
|
|
./texture_uploader.hpp
|
2023-07-26 20:09:57 +02:00
|
|
|
./sdlrenderer_texture_uploader.hpp
|
|
|
|
./sdlrenderer_texture_uploader.cpp
|
2023-08-02 19:24:51 +02:00
|
|
|
|
2023-07-31 20:47:22 +02:00
|
|
|
./texture_cache.hpp
|
|
|
|
./texture_cache.cpp
|
2023-08-01 13:21:16 +02:00
|
|
|
./tox_avatar_loader.hpp
|
|
|
|
./tox_avatar_loader.cpp
|
2023-08-02 16:36:34 +02:00
|
|
|
./message_image_loader.hpp
|
|
|
|
./message_image_loader.cpp
|
2023-08-02 19:24:51 +02:00
|
|
|
|
2023-10-14 15:59:32 +02:00
|
|
|
./tox_avatar_manager.hpp
|
|
|
|
./tox_avatar_manager.cpp
|
|
|
|
|
2023-08-02 19:24:51 +02:00
|
|
|
./media_meta_info_loader.hpp
|
|
|
|
./media_meta_info_loader.cpp
|
|
|
|
|
2023-07-30 15:10:26 +02:00
|
|
|
./sdl_clipboard_utils.hpp
|
|
|
|
./sdl_clipboard_utils.cpp
|
2023-08-02 19:24:51 +02:00
|
|
|
|
2024-04-21 14:17:50 +02:00
|
|
|
./chat_gui/theme.hpp
|
|
|
|
./chat_gui/theme.cpp
|
|
|
|
./chat_gui/contact_list.hpp
|
|
|
|
./chat_gui/contact_list.cpp
|
2024-04-20 17:57:11 +02:00
|
|
|
./chat_gui/file_selector.hpp
|
|
|
|
./chat_gui/file_selector.cpp
|
|
|
|
./chat_gui/send_image_popup.hpp
|
|
|
|
./chat_gui/send_image_popup.cpp
|
|
|
|
./chat_gui/settings_window.hpp
|
|
|
|
./chat_gui/settings_window.cpp
|
2023-10-19 17:21:45 +02:00
|
|
|
|
2023-10-20 21:40:45 +02:00
|
|
|
./tox_ui_utils.hpp
|
|
|
|
./tox_ui_utils.cpp
|
|
|
|
|
2023-11-13 16:23:49 +01:00
|
|
|
./tox_dht_cap_histo.hpp
|
|
|
|
./tox_dht_cap_histo.cpp
|
|
|
|
|
2024-02-02 20:26:50 +01:00
|
|
|
./tox_friend_faux_offline_messaging.hpp
|
|
|
|
./tox_friend_faux_offline_messaging.cpp
|
|
|
|
|
2023-07-28 18:03:45 +02:00
|
|
|
./chat_gui4.hpp
|
|
|
|
./chat_gui4.cpp
|
2023-07-25 14:56:22 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
target_compile_features(tomato PUBLIC cxx_std_17)
|
|
|
|
target_link_libraries(tomato PUBLIC
|
|
|
|
solanaceae_util
|
|
|
|
solanaceae_contact
|
|
|
|
solanaceae_message3
|
2024-04-14 13:58:31 +02:00
|
|
|
solanaceae_message_serializer
|
2023-07-25 14:56:22 +02:00
|
|
|
|
2023-07-26 12:55:50 +02:00
|
|
|
solanaceae_plugin
|
2023-07-25 14:56:22 +02:00
|
|
|
|
|
|
|
solanaceae_toxcore
|
|
|
|
solanaceae_tox_contacts
|
|
|
|
solanaceae_tox_messages
|
|
|
|
|
2024-04-12 13:34:20 +02:00
|
|
|
solanaceae_object_store
|
2024-02-13 12:30:29 +01:00
|
|
|
|
2023-07-25 22:47:22 +02:00
|
|
|
SDL3::SDL3
|
|
|
|
|
2023-07-26 01:11:17 +02:00
|
|
|
imgui
|
|
|
|
imgui_backend_sdl3
|
|
|
|
imgui_backend_sdlrenderer3
|
2023-08-01 20:17:38 +02:00
|
|
|
|
|
|
|
stb_image
|
2023-10-06 13:16:45 +02:00
|
|
|
stb_image_write
|
2023-08-02 15:06:19 +02:00
|
|
|
webpdemux
|
2023-10-04 20:17:53 +02:00
|
|
|
libwebpmux # the f why (needed for anim encode)
|
2024-03-04 13:38:55 +01:00
|
|
|
qoi
|
2024-04-16 00:45:12 +02:00
|
|
|
SDL3_image::SDL3_image
|
2023-07-25 14:56:22 +02:00
|
|
|
)
|
|
|
|
|
2024-05-18 12:28:33 +02:00
|
|
|
# probably not enough
|
|
|
|
#target_compile_definitions(tomato PUBLIC ENTT_API_EXPORT)
|
|
|
|
|
|
|
|
set_target_properties(tomato PROPERTIES POSITION_INDEPENDENT_CODE ON)
|
|
|
|
|