2020-10-24 22:05:35 +00:00
|
|
|
find_packages(WINDOWS_NOTIFICATION_PACKAGES REQUIRED
|
|
|
|
Gee
|
|
|
|
GLib
|
|
|
|
GModule
|
|
|
|
GObject
|
|
|
|
GTK3
|
|
|
|
)
|
|
|
|
|
|
|
|
vala_precompile(WINDOWS_NOTIFICATION_VALA_C
|
|
|
|
SOURCES
|
|
|
|
src/plugin.vala
|
|
|
|
src/register_plugin.vala
|
2020-10-25 11:07:31 +00:00
|
|
|
src/helper.vala
|
2020-10-25 12:06:23 +00:00
|
|
|
src/wintoast.vala
|
2020-10-24 22:05:35 +00:00
|
|
|
CUSTOM_VAPIS
|
|
|
|
${CMAKE_BINARY_DIR}/exports/xmpp-vala.vapi
|
|
|
|
${CMAKE_BINARY_DIR}/exports/dino.vapi
|
|
|
|
${CMAKE_BINARY_DIR}/exports/qlite.vapi
|
|
|
|
PACKAGES
|
|
|
|
${WINDOWS_NOTIFICATION_PACKAGES}
|
|
|
|
)
|
|
|
|
|
2020-10-25 15:52:49 +00:00
|
|
|
add_custom_command(OUTPUT "${CMAKE_BINARY_DIR}/exports/DinoWinToastLib.h"
|
|
|
|
COMMAND
|
|
|
|
cp "${CMAKE_CURRENT_SOURCE_DIR}/src/DinoWinToastLib.h" "${CMAKE_BINARY_DIR}/exports/DinoWinToastLib.h"
|
|
|
|
DEPENDS
|
|
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/src/DinoWinToastLib.h"
|
|
|
|
COMMENT
|
|
|
|
Copy header file DinoWinToastLib.h
|
|
|
|
)
|
|
|
|
|
2020-10-24 22:05:35 +00:00
|
|
|
add_definitions(${VALA_CFLAGS})
|
2020-10-25 15:52:49 +00:00
|
|
|
add_library(windows-notification SHARED ${WINDOWS_NOTIFICATION_VALA_C} ${CMAKE_BINARY_DIR}/exports/DinoWinToastLib.h)
|
|
|
|
target_link_libraries(windows-notification libdino ${WINDOWS_NOTIFICATION_PACKAGES} "${CMAKE_CURRENT_SOURCE_DIR}/src/DinoWinToastLib.lib")
|
2020-10-24 22:05:35 +00:00
|
|
|
set_target_properties(windows-notification PROPERTIES PREFIX "")
|
|
|
|
set_target_properties(windows-notification PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/plugins/)
|
|
|
|
|
|
|
|
install(TARGETS windows-notification ${PLUGIN_INSTALL})
|