summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandr Akulich <akulichalexander@gmail.com>2016-06-10 18:43:54 +0500
committerAlexandr Akulich <akulichalexander@gmail.com>2016-06-10 18:43:54 +0500
commitd9354dfe8cca364e4a8c3a44c302ceb714c53911 (patch)
tree25cc24ce5eb214fa3a0552ae089fb2a96d70cb87
parented44e193c67dc2c60564ee6f68f3aee9a4a42a18 (diff)
CMake/TpQtMacros: Added missing dependencies.
Generated header now depends on input xmls. Fixes build with ninja.
-rw-r--r--cmake/modules/TpQtMacros.cmake12
1 files changed, 9 insertions, 3 deletions
diff --git a/cmake/modules/TpQtMacros.cmake b/cmake/modules/TpQtMacros.cmake
index 38f4af6a..39b166ba 100644
--- a/cmake/modules/TpQtMacros.cmake
+++ b/cmake/modules/TpQtMacros.cmake
@@ -223,7 +223,9 @@ function(tpqt_client_generator spec group pretty_include namespace)
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
DEPENDS ${CMAKE_SOURCE_DIR}/tools/libqtcodegen.py
- ${CMAKE_SOURCE_DIR}/tools/qt-client-gen.py)
+ ${CMAKE_SOURCE_DIR}/tools/qt-client-gen.py
+ ${CMAKE_CURRENT_BINARY_DIR}/_gen/stable-spec.xml
+ ${CMAKE_CURRENT_BINARY_DIR}/_gen/spec-${spec}.xml)
add_custom_target(generate_cli-${spec}-body DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/_gen/cli-${spec}-body.hpp)
add_dependencies(all-generated-sources generate_cli-${spec}-body)
@@ -259,7 +261,9 @@ function(tpqt_future_client_generator spec namespace)
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
DEPENDS ${CMAKE_SOURCE_DIR}/tools/libqtcodegen.py
- ${CMAKE_SOURCE_DIR}/tools/qt-client-gen.py)
+ ${CMAKE_SOURCE_DIR}/tools/qt-client-gen.py
+ ${CMAKE_CURRENT_BINARY_DIR}/_gen/future-spec.xml
+ ${CMAKE_CURRENT_BINARY_DIR}/_gen/future-${spec}.xml)
add_custom_target(generate_future-${spec}-body DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/_gen/future-${spec}-body.hpp)
add_dependencies(all-generated-sources generate_future-${spec}-body)
@@ -294,7 +298,9 @@ function(tpqt_service_generator spec group pretty_include namespace)
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
DEPENDS ${CMAKE_SOURCE_DIR}/tools/libqtcodegen.py
- ${CMAKE_SOURCE_DIR}/tools/qt-svc-gen.py)
+ ${CMAKE_SOURCE_DIR}/tools/qt-svc-gen.py
+ ${CMAKE_CURRENT_BINARY_DIR}/_gen/stable-spec.xml
+ ${CMAKE_CURRENT_BINARY_DIR}/_gen/spec-svc-${spec}.xml)
add_custom_target(generate_service-${spec}-body DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/_gen/svc-${spec}.cpp)
add_dependencies(all-generated-service-sources generate_service-${spec}-body)