2014-11-28 12:49:10 +00:00
|
|
|
project(kcharselect)
|
|
|
|
|
|
|
|
########### next target ###############
|
|
|
|
|
|
|
|
if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
|
2015-01-20 17:31:51 +00:00
|
|
|
find_package(KDE4 4.14.3 REQUIRED)
|
2014-11-28 12:49:10 +00:00
|
|
|
include( KDE4Defaults )
|
|
|
|
include_directories(${KDE4_INCLUDES})
|
|
|
|
|
|
|
|
add_definitions(${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
|
|
|
|
add_definitions(-DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS)
|
|
|
|
|
|
|
|
# If definitions like -D_GNU_SOURCE are needed for these checks they
|
|
|
|
# should be added to _KDE4_PLATFORM_DEFINITIONS when it is originally
|
|
|
|
# defined outside this file. Here we include these definitions in
|
|
|
|
# CMAKE_REQUIRED_DEFINITIONS so they will be included in the build of
|
|
|
|
# checks below.
|
|
|
|
set( CMAKE_REQUIRED_DEFINITIONS ${_KDE4_PLATFORM_DEFINITIONS} )
|
|
|
|
endif()
|
|
|
|
|
|
|
|
set(kcharselect_SRCS kcharselectdia.cc main.cc )
|
|
|
|
|
2015-09-02 02:13:50 +03:00
|
|
|
add_executable(kcharselect ${kcharselect_SRCS})
|
2014-11-28 12:49:10 +00:00
|
|
|
|
|
|
|
target_link_libraries(kcharselect ${KDE4_KDEUI_LIBS} )
|
|
|
|
|
|
|
|
install(TARGETS kcharselect ${INSTALL_TARGETS_DEFAULT_ARGS} )
|
|
|
|
|
|
|
|
########### install files ###############
|
|
|
|
|
|
|
|
install( PROGRAMS KCharSelect.desktop DESTINATION ${XDG_APPS_INSTALL_DIR})
|
|
|
|
install( FILES kcharselectui.rc DESTINATION ${DATA_INSTALL_DIR}/kcharselect)
|
|
|
|
|
|
|
|
kde4_install_icons( ${ICON_INSTALL_DIR} )
|