solanaceae_crdtnotes/plugins/CMakeLists.txt

49 lines
1.4 KiB
CMake
Raw Permalink Normal View History

2023-11-02 00:14:34 +01:00
cmake_minimum_required(VERSION 3.24 FATAL_ERROR)
2024-05-28 10:09:58 +02:00
add_library(plugin_crdtnotes MODULE
2023-11-02 00:14:34 +01:00
./plugin_crdtnotes.cpp
)
target_compile_features(plugin_crdtnotes PUBLIC cxx_std_17)
2024-05-19 11:40:54 +02:00
set_target_properties(plugin_crdtnotes PROPERTIES
C_VISIBILITY_PRESET hidden
)
target_compile_definitions(plugin_crdtnotes PUBLIC ENTT_API_IMPORT)
2023-11-02 00:14:34 +01:00
target_link_libraries(plugin_crdtnotes PUBLIC
solanaceae_crdtnotes
solanaceae_plugin
)
########################################
2024-05-28 10:09:58 +02:00
add_library(plugin_crdtnotes_imgui MODULE
2023-11-02 00:14:34 +01:00
./plugin_crdtnotes_imgui.cpp
)
target_compile_features(plugin_crdtnotes_imgui PUBLIC cxx_std_17)
2024-05-19 11:40:54 +02:00
set_target_properties(plugin_crdtnotes_imgui PROPERTIES
C_VISIBILITY_PRESET hidden
)
target_compile_definitions(plugin_crdtnotes_imgui PUBLIC ENTT_API_IMPORT)
2023-11-02 00:14:34 +01:00
target_link_libraries(plugin_crdtnotes_imgui PUBLIC
solanaceae_crdtnotes_imgui
solanaceae_plugin
)
########################################
2023-12-28 00:51:34 +01:00
if (TARGET solanaceae_crdtnotes_toxsync)
2024-05-28 10:09:58 +02:00
add_library(plugin_crdtnotes_toxsync MODULE
2023-12-28 00:51:34 +01:00
./plugin_crdtnotes_toxsync.cpp
)
target_compile_features(plugin_crdtnotes_toxsync PUBLIC cxx_std_17)
2024-05-19 11:40:54 +02:00
set_target_properties(plugin_crdtnotes_toxsync PROPERTIES
C_VISIBILITY_PRESET hidden
)
target_compile_definitions(plugin_crdtnotes_toxsync PUBLIC ENTT_API_IMPORT)
2023-12-28 00:51:34 +01:00
target_link_libraries(plugin_crdtnotes_toxsync PUBLIC
solanaceae_crdtnotes_toxsync
solanaceae_plugin
)
endif()
########################################