aboutsummaryrefslogtreecommitdiff
path: root/plugins/ice/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/ice/CMakeLists.txt')
-rw-r--r--plugins/ice/CMakeLists.txt10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/ice/CMakeLists.txt b/plugins/ice/CMakeLists.txt
index 392a202f..b18bfcc5 100644
--- a/plugins/ice/CMakeLists.txt
+++ b/plugins/ice/CMakeLists.txt
@@ -1,11 +1,11 @@
+find_package(Nice REQUIRED)
+find_package(GnuTLS REQUIRED)
find_packages(ICE_PACKAGES REQUIRED
Gee
GLib
GModule
- GnuTLS
GObject
GTK3
- Nice
)
vala_precompile(ICE_VALA_C
@@ -21,15 +21,15 @@ CUSTOM_VAPIS
${CMAKE_BINARY_DIR}/exports/dino.vapi
${CMAKE_BINARY_DIR}/exports/qlite.vapi
${CMAKE_BINARY_DIR}/exports/crypto-vala.vapi
+ ${CMAKE_CURRENT_SOURCE_DIR}/vapi/nice.vapi
+ ${CMAKE_CURRENT_SOURCE_DIR}/vapi/gnutls.vapi
PACKAGES
${ICE_PACKAGES}
-OPTIONS
- --vapidir=${CMAKE_CURRENT_SOURCE_DIR}/vapi
)
add_definitions(${VALA_CFLAGS} -DG_LOG_DOMAIN="ice")
add_library(ice SHARED ${ICE_VALA_C})
-target_link_libraries(ice libdino crypto-vala ${ICE_PACKAGES})
+target_link_libraries(ice libdino crypto-vala ${ICE_PACKAGES} nice gnutls)
set_target_properties(ice PROPERTIES PREFIX "")
set_target_properties(ice PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/plugins/)