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 <slavek.banko@axis.cz>
pull/5/head
Slávek Banko 6 years ago
parent 78e39d5913
commit 48c6bba031
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -1,6 +1,7 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer # This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
add_definitions( -DUSE_KDE )
add_subdirectory( common ) add_subdirectory( common )
add_subdirectory( kde )
#add_subdirectory( qt )
add_subdirectory( kde-qt-common ) add_subdirectory( kde-qt-common )
add_subdirectory( kde )

@ -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 SOURCES String.cc Files.cc Disks.cc Config.cc lilo.cc
) )

@ -4,6 +4,8 @@ include_directories(
${CMAKE_BINARY_DIR} ${CMAKE_BINARY_DIR}
${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/..
${CMAKE_CURRENT_SOURCE_DIR}/../common
${TDE_INCLUDE_DIR} ${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS} ${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 SOURCES mainwidget.cpp general.cpp images.cpp expert.cpp EditWidget.cpp
LINK common-shared LINK liloconfig-common-static
) )

@ -36,8 +36,8 @@
#include "kde/InputBox.h" #include "kde/InputBox.h"
#include "kde/Details.h" #include "kde/Details.h"
#else #else
#include "tqt/InputBox.h" #include "qt/InputBox.h"
#include "tqt/Details.h" #include "qt/Details.h"
#endif #endif
Images::Images(liloconf *l, TQWidget *parent, const char *name):TQWidget(parent, name) Images::Images(liloconf *l, TQWidget *parent, const char *name):TQWidget(parent, name)

@ -4,26 +4,23 @@ include_directories(
${CMAKE_BINARY_DIR} ${CMAKE_BINARY_DIR}
${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/../common
${CMAKE_CURRENT_SOURCE_DIR}/../kde-qt-common
${TDE_INCLUDE_DIR} ${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS} ${TQT_INCLUDE_DIRS}
${CMAKE_SOURCE_DIR}/lilo-config/kde-qt-common
${CMAKE_SOURCE_DIR}/lilo-config/common
) )
link_directories( link_directories(
${TQT_LIBRARY_DIRS} ${TQT_LIBRARY_DIRS}
${TDE_LIB_DIR} ${TDE_LIB_DIR}
${CMAKE_SOURCE_DIR}/lilo-config/kde-qt-common
${CMAKE_SOURCE_DIR}/lilo-config/common
) )
add_definitions( -DUSE_KDE )
##### kcm_lilo (kpart) ########################## ##### kcm_lilo (kpart) ##########################
tde_add_kpart( kcm_lilo AUTOMOC tde_add_kpart( kcm_lilo AUTOMOC
SOURCES kcontrol.cpp Details.cpp InputBox.cpp 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} DESTINATION ${PLUGIN_INSTALL_DIR}
) )

@ -4,6 +4,8 @@ include_directories(
${CMAKE_BINARY_DIR} ${CMAKE_BINARY_DIR}
${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/../common
${CMAKE_CURRENT_SOURCE_DIR}/../kde-qt-common
${TDE_INCLUDE_DIR} ${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS} ${TQT_INCLUDE_DIRS}
) )
@ -16,6 +18,7 @@ link_directories(
##### lilo-config (executable) ################## ##### lilo-config (executable) ##################
tde_add_executable( lilo-config AUTOMOC tde_add_executable( lilo-config AUTOMOC
SOURCES SOURCES standalone.cpp Details.cpp InputBox.cpp
LINK liloconfig-widgets-static
DESTINATION ${BIN_INSTALL_DIR} DESTINATION ${BIN_INSTALL_DIR}
) )

Loading…
Cancel
Save