From 9270185becb48401bf3b2337d248763df0873107 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20Vr=C3=A1til?= Date: Fri, 15 May 2015 16:21:26 +0200 Subject: Ensure proper dependencies between build targets and generate_flatbuffers targets --- common/CMakeLists.txt | 36 +++++++++++++++++++++--------------- 1 file changed, 21 insertions(+), 15 deletions(-) (limited to 'common/CMakeLists.txt') diff --git a/common/CMakeLists.txt b/common/CMakeLists.txt index f6847a7..19b23c8 100644 --- a/common/CMakeLists.txt +++ b/common/CMakeLists.txt @@ -1,19 +1,6 @@ +include_directories(${CMAKE_CURRENT_BINARY_DIR}) + project(akonadi2common) -generate_flatbuffers( - commands/commandcompletion - commands/createentity - commands/deleteentity - commands/fetchentity - commands/handshake - commands/modifyentity - commands/revisionupdate - commands/synchronize - commands/notification - domain/event - entity - metadata - queuedcommand -) if (STORAGE_unqlite) add_definitions(-DUNQLITE_ENABLE_THREADS -fpermissive) @@ -41,6 +28,25 @@ set(command_SRCS ${storage_SRCS}) add_library(${PROJECT_NAME} SHARED ${command_SRCS}) + +generate_flatbuffers( + ${PROJECT_NAME} + + commands/commandcompletion + commands/createentity + commands/deleteentity + commands/fetchentity + commands/handshake + commands/modifyentity + commands/revisionupdate + commands/synchronize + commands/notification + domain/event + entity + metadata + queuedcommand +) + generate_export_header(${PROJECT_NAME} BASE_NAME Akonadi2Common EXPORT_FILE_NAME akonadi2common_export.h) SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES LINKER_LANGUAGE CXX) qt5_use_modules(${PROJECT_NAME} Network) -- cgit v1.2.3