diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2021-01-23 02:24:29 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2021-01-26 15:37:04 +0100 |
commit | d1dc3998e9db7a0284f06bf8186a00a292fea13d (patch) | |
tree | f897923e3eee3dad87937538f0dc1a7b5f834ed5 /kspeechsink/CMakeLists.txt | |
parent | f11f6d6ded39175d915422da2bac6fb6ffc924f9 (diff) | |
download | tdeaccessibility-d1dc3998e9db7a0284f06bf8186a00a292fea13d.tar.gz tdeaccessibility-d1dc3998e9db7a0284f06bf8186a00a292fea13d.zip |
cmake: Simplify 'skel' and 'stub' generation for kspeech and kspeechlink
as well as their subsequent linking.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 91fc9555abdfd455096b61b350d57ec79943b220)
Diffstat (limited to 'kspeechsink/CMakeLists.txt')
-rw-r--r-- | kspeechsink/CMakeLists.txt | 56 |
1 files changed, 11 insertions, 45 deletions
diff --git a/kspeechsink/CMakeLists.txt b/kspeechsink/CMakeLists.txt index 0b3560a..26e4dd3 100644 --- a/kspeechsink/CMakeLists.txt +++ b/kspeechsink/CMakeLists.txt @@ -12,60 +12,26 @@ link_directories( ${TDE_LIB_DIR} ) -add_compile_options( -fPIC ) +##### kspeech_stub (static) -##### ksayit_kspeech +tde_add_library( kspeech_stub STATIC_PIC -set( KSPEECH_KIDL kspeech.kidl ) -set( KSPEECH_STUB kspeech_stub ) - -add_custom_command( - OUTPUT ${KSPEECH_KIDL} - COMMAND ${KDE3_DCOPIDL_EXECUTABLE} ${KTTS_KSPEECH_DIR}/kspeech.h > ${KSPEECH_KIDL} - DEPENDS ${KTTS_KSPEECH_DIR}/kspeech.h -) -add_custom_target( ksayit-kspeech-kidl DEPENDS ${KSPEECH_KIDL} ) - -add_custom_command( - OUTPUT ${KSPEECH_STUB}.h ${KSPEECH_STUB}.cpp - COMMAND ${KDE3_DCOPIDL2CPP_EXECUTABLE} --c++-suffix cpp --no-signals --no-skel ${KSPEECH_KIDL} - DEPENDS ${KSPEECH_KIDL} -) -add_custom_target( ksayit-kspeech-stub DEPENDS ${KSPEECH_STUB}.cpp ) - - -###### ksayit_kspeechsink - -set( KSPEECHSINK_KIDL kspeechsink.kidl ) -set( KSPEECHSINK_SKEL kspeechsink_skel ) - -add_custom_command( - OUTPUT ${KSPEECHSINK_KIDL} - COMMAND ${KDE3_DCOPIDL_EXECUTABLE} ${KTTS_KSPEECH_DIR}/kspeechsink.h > ${KSPEECHSINK_KIDL} - DEPENDS ${KTTS_KSPEECH_DIR}/kspeechsink.h -) -add_custom_target( ksayit-kspeechsink-kidl DEPENDS ${KSPEECHSINK_KIDL} ) + SOURCES + ${KTTS_KSPEECH_DIR}/kspeech.stub + ${KTTS_KSPEECH_DIR}/kspeechsink.skel -add_custom_command( - OUTPUT ${KSPEECHSINK_SKEL}.cpp - COMMAND ${KDE3_DCOPIDL2CPP_EXECUTABLE} --c++-suffix cpp --no-signals --no-stub ${KSPEECHSINK_KIDL} - DEPENDS ${KSPEECHSINK_KIDL} + EXCLUDE_FROM_ALL ) -add_custom_target( ksayit-kspeechsink-skel DEPENDS ${KSPEECHSINK_SKEL}.cpp ) -##### DUMMY_Lib (static) +##### kspeech_skel (static) -tde_add_library( DUMMY_kspeech_lib STATIC +tde_add_library( kspeech_skel STATIC_PIC SOURCES - ${CMAKE_CURRENT_BINARY_DIR}/${KSPEECH_STUB}.cpp - ${CMAKE_CURRENT_BINARY_DIR}/${KSPEECHSINK_SKEL}.cpp - LINK - tdecore-shared + ${KTTS_KSPEECH_DIR}/kspeech.skel + ${KTTS_KSPEECH_DIR}/kspeechsink.stub - DEPENDENCIES - ksayit-kspeech-stub - ksayit-kspeechsink-skel + EXCLUDE_FROM_ALL ) |