tomato/src/CMakeLists.txt

123 lines
2.3 KiB
CMake
Raw Normal View History

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
########################################
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
./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
./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
./image_loader.cpp
2023-07-30 16:00:55 +02:00
./image_loader_sdl_bmp.hpp
./image_loader_sdl_bmp.cpp
./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
./texture_cache.hpp
./texture_cache.cpp
2023-08-01 13:21:16 +02:00
./tox_avatar_loader.hpp
./tox_avatar_loader.cpp
./message_image_loader.hpp
./message_image_loader.cpp
2023-08-02 19:24:51 +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
./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
./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
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
stb_image
2023-10-06 13:16:45 +02:00
stb_image_write
2023-08-02 15:06:19 +02:00
webpdemux
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
)
# probably not enough
#target_compile_definitions(tomato PUBLIC ENTT_API_EXPORT)
set_target_properties(tomato PROPERTIES POSITION_INDEPENDENT_CODE ON)