diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2019-07-10 14:07:27 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2019-07-10 14:07:42 +0200 |
commit | 90da251646d622c2b5a8446ed22af552a6176917 (patch) | |
tree | b2a55e6abb2b90ae4b6fea57cd6f546c0b404181 | |
parent | 6c44ae51f928e4d74d166a41255109fb300a6e09 (diff) | |
download | tdeedu-90da251646d622c2b5a8446ed22af552a6176917.tar.gz tdeedu-90da251646d622c2b5a8446ed22af552a6176917.zip |
cmake: Avoid double generation of kmplot common files.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 55334cc0a0fab66517b3ce4786b64dcbcb75f961)
-rw-r--r-- | kmplot/kmplot/CMakeLists.txt | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/kmplot/kmplot/CMakeLists.txt b/kmplot/kmplot/CMakeLists.txt index 0771413c..3ebe22e7 100644 --- a/kmplot/kmplot/CMakeLists.txt +++ b/kmplot/kmplot/CMakeLists.txt @@ -11,12 +11,14 @@ link_directories( ${TDE_LIB_DIR} ) -set_property( - SOURCE kmplot.cpp - APPEND PROPERTY OBJECT_DEPENDS - ${CMAKE_BINARY_DIR}/kmplot/kmplot/settings.cpp - ${CMAKE_BINARY_DIR}/kmplot/kmplot/FktDlgData.cpp - ${CMAKE_BINARY_DIR}/kmplot/kmplot/qminmax.cpp + +##### target for generating common files + +add_custom_target( kmplot-generated-common + DEPENDS + ${CMAKE_CURRENT_BINARY_DIR}/settings.cpp + ${CMAKE_CURRENT_BINARY_DIR}/FktDlgData.cpp + ${CMAKE_CURRENT_BINARY_DIR}/qminmax.cpp ) @@ -35,6 +37,9 @@ tde_add_executable( kmplot AUTOMOC tdeio-shared tdeparts-shared + DEPENDENCIES + kmplot-generated-common + DESTINATION ${BIN_INSTALL_DIR} ) @@ -87,6 +92,9 @@ tde_add_kpart( libkmplotpart AUTOMOC tdeprint-shared tdeparts-shared + DEPENDENCIES + kmplot-generated-common + DESTINATION ${PLUGIN_INSTALL_DIR} ) |