diff options
author | Marvin W <git@larma.de> | 2017-04-23 10:01:40 +0200 |
---|---|---|
committer | Marvin W <git@larma.de> | 2017-04-26 21:48:53 +0200 |
commit | eddf17c68274c3e8ecf86a13858243159ffe9714 (patch) | |
tree | db92b3ea3ffd453a16df9e53d0b454d172b8c8f2 /libdino/CMakeLists.txt | |
parent | 3eb9aa0fa79ea9fcebb5f702f81c2e54aafdc8cc (diff) | |
download | dino-eddf17c68274c3e8ecf86a13858243159ffe9714.tar.gz dino-eddf17c68274c3e8ecf86a13858243159ffe9714.zip |
cmake/signal-protocol: shared lib, mark_as_advanced and others
Diffstat (limited to 'libdino/CMakeLists.txt')
-rw-r--r-- | libdino/CMakeLists.txt | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/libdino/CMakeLists.txt b/libdino/CMakeLists.txt index 445f428a..c60075a3 100644 --- a/libdino/CMakeLists.txt +++ b/libdino/CMakeLists.txt @@ -66,16 +66,11 @@ COMMENT Copy header file dino_i18n.h ) -add_definitions(${VALA_CFLAGS} -DDINO_PLUGINS_SYSTEM_PLUGIN_DIR="${PLUGIN_INSTALL_DIR}" -DDINO_PLUGINS_SYSTEM_LIBDIR_NAME="${LIBDIR_NAME}") -add_library(libdino SHARED ${LIBDINO_VALA_C} ${CMAKE_BINARY_DIR}/exports/dino_i18n.h) -add_dependencies(libdino xmpp-vala-vapi qlite-vapi) -target_link_libraries(libdino xmpp-vala qlite ${LIBDINO_PACKAGES} m) -set_target_properties(libdino PROPERTIES PREFIX "" VERSION 0.0 SOVERSION 0) - add_custom_target(dino-vapi DEPENDS ${CMAKE_BINARY_DIR}/exports/dino.vapi ${CMAKE_BINARY_DIR}/exports/dino.deps + ${CMAKE_BINARY_DIR}/exports/dino_i18n.h ) add_custom_command(OUTPUT ${CMAKE_BINARY_DIR}/gschemas.compiled @@ -90,7 +85,13 @@ DEPENDS ${CMAKE_BINARY_DIR}/gschemas.compiled ) +add_definitions(${VALA_CFLAGS} -DDINO_PLUGINS_SYSTEM_PLUGIN_DIR="${PLUGIN_INSTALL_DIR}" -DDINO_PLUGINS_SYSTEM_LIBDIR_NAME="${LIBDIR_NAME}") +add_library(libdino SHARED ${LIBDINO_VALA_C} ${CMAKE_BINARY_DIR}/exports/dino_i18n.h) +add_dependencies(libdino dino-vapi dino-gsettings-schema-compiled) +target_link_libraries(libdino xmpp-vala qlite ${LIBDINO_PACKAGES} m) +set_target_properties(libdino PROPERTIES PREFIX "" VERSION 0.0 SOVERSION 0) + install(TARGETS libdino ${TARGET_INSTALL}) install(FILES ${CMAKE_BINARY_DIR}/exports/dino.vapi ${CMAKE_BINARY_DIR}/exports/dino.deps DESTINATION ${VAPI_INSTALL_DIR}) -install(FILES ${CMAKE_BINARY_DIR}/exports/dino.h DESTINATION ${INCLUDE_INSTALL_DIR}) +install(FILES ${CMAKE_BINARY_DIR}/exports/dino.h ${CMAKE_BINARY_DIR}/exports/dino_i18n.h DESTINATION ${INCLUDE_INSTALL_DIR}) install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/dino.gschema.xml DESTINATION ${SHARE_INSTALL_PREFIX}/glib-2.0/schemas/)
\ No newline at end of file |