2015-08-12 13:11:16 +03:00
|
|
|
include(CheckCXXSymbolExists)
|
2014-11-13 19:30:51 +02:00
|
|
|
|
|
|
|
include_directories( ${KDE4_INCLUDES} )
|
|
|
|
add_definitions( -DKDE_DEFAULT_DEBUG_AREA=1208 )
|
|
|
|
|
2022-12-02 03:15:13 +02:00
|
|
|
# info_fbsd.cpp
|
|
|
|
check_include_files(devinfo.h HAVE_DEVINFO_H)
|
|
|
|
|
|
|
|
# opengl.cpp
|
|
|
|
if(LIBDRM_FOUND)
|
|
|
|
cmake_reset_check_state()
|
|
|
|
set(CMAKE_REQUIRED_INCLUDES ${LIBDRM_INCLUDE_DIR})
|
|
|
|
set(CMAKE_REQUIRED_LIBRARIES ${LIBDRM_LIBRARIES})
|
|
|
|
check_symbol_exists(drmIsKMS "xf86drmMode.h" HAVE_DRMISKMS)
|
|
|
|
cmake_reset_check_state()
|
|
|
|
else()
|
|
|
|
set(HAVE_DRMISKMS FALSE)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
configure_file (
|
|
|
|
config-infocenter.h.cmake
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/config-infocenter.h
|
|
|
|
)
|
|
|
|
include_directories(
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
)
|
|
|
|
|
2014-11-13 19:30:51 +02:00
|
|
|
add_subdirectory( Categories )
|
|
|
|
add_subdirectory( Modules )
|
|
|
|
|
2022-12-02 03:15:13 +02:00
|
|
|
include_directories(
|
|
|
|
ToolTips
|
|
|
|
)
|
2014-11-13 19:30:51 +02:00
|
|
|
|
|
|
|
set( kinfocenter_SRCS
|
2015-09-01 04:37:19 +03:00
|
|
|
infocenter.cpp
|
|
|
|
main.cpp
|
|
|
|
sidepanel.cpp
|
|
|
|
kcmcontainer.cpp
|
|
|
|
kcmtreeitem.cpp
|
|
|
|
kcmcategoryitem.cpp
|
|
|
|
infokcmmodel.cpp
|
|
|
|
infokcmproxymodel.cpp
|
|
|
|
ToolTips/ktooltip.cpp
|
|
|
|
ToolTips/ktooltipwindow.cpp
|
|
|
|
ToolTips/tooltipmanager.cpp
|
2014-11-13 19:30:51 +02:00
|
|
|
)
|
|
|
|
|
2023-06-17 18:38:55 +03:00
|
|
|
add_executable(kinfocenter ${kinfocenter_SRCS} )
|
2014-11-13 19:30:51 +02:00
|
|
|
|
2023-06-17 18:38:55 +03:00
|
|
|
target_link_libraries(kinfocenter
|
|
|
|
${KDE4_KFILE_LIBS}
|
|
|
|
${KDE4_KCMUTILS_LIBS}
|
|
|
|
)
|
2014-11-13 19:30:51 +02:00
|
|
|
|
|
|
|
##install
|
2023-06-17 18:38:55 +03:00
|
|
|
install(
|
|
|
|
TARGETS kinfocenter
|
|
|
|
DESTINATION ${KDE4_BIN_INSTALL_DIR}
|
|
|
|
)
|
|
|
|
install(
|
|
|
|
PROGRAMS kinfocenter.desktop
|
|
|
|
DESTINATION ${KDE4_XDG_APPS_INSTALL_DIR}
|
|
|
|
)
|
|
|
|
INSTALL(
|
|
|
|
FILES kinfocenterui.rc
|
|
|
|
DESTINATION ${KDE4_DATA_INSTALL_DIR}/kinfocenter
|
|
|
|
)
|