cmake: Avoid double generation of kmplot common files.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/4/head
Slávek Banko 5 years ago
parent 644ddeda08
commit 55334cc0a0
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -11,12 +11,14 @@ link_directories(
${TDE_LIB_DIR} ${TDE_LIB_DIR}
) )
set_property(
SOURCE kmplot.cpp ##### target for generating common files
APPEND PROPERTY OBJECT_DEPENDS
${CMAKE_BINARY_DIR}/kmplot/kmplot/settings.cpp add_custom_target( kmplot-generated-common
${CMAKE_BINARY_DIR}/kmplot/kmplot/FktDlgData.cpp DEPENDS
${CMAKE_BINARY_DIR}/kmplot/kmplot/qminmax.cpp ${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 tdeio-shared
tdeparts-shared tdeparts-shared
DEPENDENCIES
kmplot-generated-common
DESTINATION ${BIN_INSTALL_DIR} DESTINATION ${BIN_INSTALL_DIR}
) )
@ -87,6 +92,9 @@ tde_add_kpart( libkmplotpart AUTOMOC
tdeprint-shared tdeprint-shared
tdeparts-shared tdeparts-shared
DEPENDENCIES
kmplot-generated-common
DESTINATION ${PLUGIN_INSTALL_DIR} DESTINATION ${PLUGIN_INSTALL_DIR}
) )

Loading…
Cancel
Save