diff options
author | Slávek Banko <[email protected]> | 2018-08-25 13:53:12 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2018-09-01 19:02:11 +0200 |
commit | e95277074ee736e5043f9e8bebc0eaf45e86396c (patch) | |
tree | f262cab4686e9bd084899af9a9db492666dd53c8 /lilo-config | |
parent | 33423a846944b30830d67898dd97493f0e1844c0 (diff) | |
download | tdeadmin-e95277074ee736e5043f9e8bebc0eaf45e86396c.tar.gz tdeadmin-e95277074ee736e5043f9e8bebc0eaf45e86396c.zip |
cmake lilo-config: Always add the USE_KDE definition
There is no reason to build a TQt-only frontend in TDE
Fix the names of the auxiliary library targets
Fix includes folders
Signed-off-by: Slávek Banko <[email protected]>
(cherry picked from commit 48c6bba031ea37591a821d9554dd292aee938d58)
Diffstat (limited to 'lilo-config')
-rw-r--r-- | lilo-config/CMakeLists.txt | 5 | ||||
-rw-r--r-- | lilo-config/common/CMakeLists.txt | 4 | ||||
-rw-r--r-- | lilo-config/kde-qt-common/CMakeLists.txt | 8 | ||||
-rw-r--r-- | lilo-config/kde-qt-common/images.cpp | 4 | ||||
-rw-r--r-- | lilo-config/kde/CMakeLists.txt | 9 | ||||
-rw-r--r-- | lilo-config/qt/CMakeLists.txt | 5 |
6 files changed, 19 insertions, 16 deletions
diff --git a/lilo-config/CMakeLists.txt b/lilo-config/CMakeLists.txt index 6ad5ca1..d6f357d 100644 --- a/lilo-config/CMakeLists.txt +++ b/lilo-config/CMakeLists.txt @@ -1,6 +1,7 @@ # This file is genereted by trinity-automake-cmake-convert script by Fat-Zer +add_definitions( -DUSE_KDE ) + add_subdirectory( common ) -add_subdirectory( kde ) -#add_subdirectory( qt ) add_subdirectory( kde-qt-common ) +add_subdirectory( kde ) diff --git a/lilo-config/common/CMakeLists.txt b/lilo-config/common/CMakeLists.txt index 9db95db..2682ad5 100644 --- a/lilo-config/common/CMakeLists.txt +++ b/lilo-config/common/CMakeLists.txt @@ -14,8 +14,8 @@ link_directories( ) -##### common (static) ########################### +##### liloconfig-common (static) ################ -tde_add_library( common STATIC_PIC AUTOMOC +tde_add_library( liloconfig-common STATIC_PIC AUTOMOC SOURCES String.cc Files.cc Disks.cc Config.cc lilo.cc ) diff --git a/lilo-config/kde-qt-common/CMakeLists.txt b/lilo-config/kde-qt-common/CMakeLists.txt index 81e638a..37ee790 100644 --- a/lilo-config/kde-qt-common/CMakeLists.txt +++ b/lilo-config/kde-qt-common/CMakeLists.txt @@ -4,6 +4,8 @@ include_directories( ${CMAKE_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_SOURCE_DIR}/.. + ${CMAKE_CURRENT_SOURCE_DIR}/../common ${TDE_INCLUDE_DIR} ${TQT_INCLUDE_DIRS} ) @@ -14,9 +16,9 @@ link_directories( ) -##### widgets (static) ########################## +##### liloconfig-widgets (static) ############### -tde_add_library( widgets STATIC_PIC AUTOMOC +tde_add_library( liloconfig-widgets STATIC_PIC AUTOMOC SOURCES mainwidget.cpp general.cpp images.cpp expert.cpp EditWidget.cpp - LINK common-shared + LINK liloconfig-common-static ) diff --git a/lilo-config/kde-qt-common/images.cpp b/lilo-config/kde-qt-common/images.cpp index 559b993..8b09749 100644 --- a/lilo-config/kde-qt-common/images.cpp +++ b/lilo-config/kde-qt-common/images.cpp @@ -36,8 +36,8 @@ #include "kde/InputBox.h" #include "kde/Details.h" #else -#include "tqt/InputBox.h" -#include "tqt/Details.h" +#include "qt/InputBox.h" +#include "qt/Details.h" #endif Images::Images(liloconf *l, TQWidget *parent, const char *name):TQWidget(parent, name) diff --git a/lilo-config/kde/CMakeLists.txt b/lilo-config/kde/CMakeLists.txt index d52d809..3da86ed 100644 --- a/lilo-config/kde/CMakeLists.txt +++ b/lilo-config/kde/CMakeLists.txt @@ -4,26 +4,23 @@ include_directories( ${CMAKE_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_SOURCE_DIR}/../common + ${CMAKE_CURRENT_SOURCE_DIR}/../kde-qt-common ${TDE_INCLUDE_DIR} ${TQT_INCLUDE_DIRS} - ${CMAKE_SOURCE_DIR}/lilo-config/kde-qt-common - ${CMAKE_SOURCE_DIR}/lilo-config/common ) link_directories( ${TQT_LIBRARY_DIRS} ${TDE_LIB_DIR} - ${CMAKE_SOURCE_DIR}/lilo-config/kde-qt-common - ${CMAKE_SOURCE_DIR}/lilo-config/common ) -add_definitions( -DUSE_KDE ) ##### kcm_lilo (kpart) ########################## tde_add_kpart( kcm_lilo AUTOMOC SOURCES kcontrol.cpp Details.cpp InputBox.cpp - LINK tdeio-shared tdecore-shared tdeui-shared + LINK liloconfig-widgets-static tdeio-shared tdecore-shared tdeui-shared DESTINATION ${PLUGIN_INSTALL_DIR} ) diff --git a/lilo-config/qt/CMakeLists.txt b/lilo-config/qt/CMakeLists.txt index 4e8c303..c079059 100644 --- a/lilo-config/qt/CMakeLists.txt +++ b/lilo-config/qt/CMakeLists.txt @@ -4,6 +4,8 @@ include_directories( ${CMAKE_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_SOURCE_DIR}/../common + ${CMAKE_CURRENT_SOURCE_DIR}/../kde-qt-common ${TDE_INCLUDE_DIR} ${TQT_INCLUDE_DIRS} ) @@ -16,6 +18,7 @@ link_directories( ##### lilo-config (executable) ################## tde_add_executable( lilo-config AUTOMOC - SOURCES + SOURCES standalone.cpp Details.cpp InputBox.cpp + LINK liloconfig-widgets-static DESTINATION ${BIN_INSTALL_DIR} ) |