diff options
author | fiaxh <git@mx.ax.lt> | 2017-03-02 15:37:32 +0100 |
---|---|---|
committer | fiaxh <git@mx.ax.lt> | 2017-03-02 15:37:32 +0100 |
commit | 56bc45ce4d07a7a9a415e9dc8ad2f7c3f3c9e48d (patch) | |
tree | 0bd0c2c80cb81179c26282fb3fbe8fd22983f40b /qlite/CMakeLists.txt | |
download | dino-56bc45ce4d07a7a9a415e9dc8ad2f7c3f3c9e48d.tar.gz dino-56bc45ce4d07a7a9a415e9dc8ad2f7c3f3c9e48d.zip |
Initial commit
Diffstat (limited to 'qlite/CMakeLists.txt')
-rw-r--r-- | qlite/CMakeLists.txt | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/qlite/CMakeLists.txt b/qlite/CMakeLists.txt new file mode 100644 index 00000000..d19ed2d2 --- /dev/null +++ b/qlite/CMakeLists.txt @@ -0,0 +1,46 @@ +find_package(Vala REQUIRED) +find_package(PkgConfig REQUIRED) +include(${VALA_USE_FILE}) + +set(QLITE_PACKAGES + gee-0.8 + glib-2.0 + sqlite3 +) + +pkg_check_modules(QLITE REQUIRED ${QLITE_PACKAGES}) + +vala_precompile(QLITE_VALA_C +SOURCES + "src/database.vala" + "src/table.vala" + "src/column.vala" + "src/row.vala" + + "src/statement_builder.vala" + "src/query_builder.vala" + "src/insert_builder.vala" + "src/update_builder.vala" + "src/delete_builder.vala" +PACKAGES + ${QLITE_PACKAGES} +GENERATE_VAPI + qlite +GENERATE_HEADER + qlite +OPTIONS + -g + --thread + --vapidir=${CMAKE_SOURCE_DIR}/vapi +) + +set(CFLAGS ${QLITE_CFLAGS} -g ${VALA_CFLAGS}) +add_definitions(${CFLAGS}) +add_library(qlite SHARED ${QLITE_VALA_C}) +target_link_libraries(qlite ${QLITE_LIBRARIES}) + +add_custom_target(qlite-vapi +DEPENDS + ${CMAKE_BINARY_DIR}/qlite/qlite.vapi +) + |