aboutsummaryrefslogtreecommitdiff
path: root/qlite/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'qlite/CMakeLists.txt')
-rw-r--r--qlite/CMakeLists.txt11
1 files changed, 6 insertions, 5 deletions
diff --git a/qlite/CMakeLists.txt b/qlite/CMakeLists.txt
index 9ffce4ae..199f06df 100644
--- a/qlite/CMakeLists.txt
+++ b/qlite/CMakeLists.txt
@@ -25,17 +25,18 @@ GENERATE_HEADER
qlite
)
-add_definitions(${VALA_CFLAGS})
-add_library(qlite SHARED ${QLITE_VALA_C})
-target_link_libraries(qlite ${QLITE_PACKAGES})
-set_target_properties(qlite PROPERTIES VERSION 0.1 SOVERSION 0)
-
add_custom_target(qlite-vapi
DEPENDS
${CMAKE_BINARY_DIR}/exports/qlite.vapi
${CMAKE_BINARY_DIR}/exports/qlite.deps
)
+add_definitions(${VALA_CFLAGS})
+add_library(qlite SHARED ${QLITE_VALA_C})
+add_dependencies(qlite qlite-vapi)
+target_link_libraries(qlite ${QLITE_PACKAGES})
+set_target_properties(qlite PROPERTIES VERSION 0.1 SOVERSION 0)
+
install(TARGETS qlite ${TARGET_INSTALL})
install(FILES ${CMAKE_BINARY_DIR}/exports/qlite.vapi ${CMAKE_BINARY_DIR}/exports/qlite.deps DESTINATION ${VAPI_INSTALL_DIR})
install(FILES ${CMAKE_BINARY_DIR}/exports/qlite.h DESTINATION ${INCLUDE_INSTALL_DIR})