diff options
Diffstat (limited to 'kspeechsink')
-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 ) |