You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
1.9 KiB
58 lines
1.9 KiB
set(BREEZE_COMMON_USE_KDE4 ${USE_KDE4}) |
|
|
|
if (BREEZE_COMMON_USE_KDE4) |
|
############ Language and toolchain features |
|
############ copied from ECM |
|
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") |
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x") |
|
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Intel" AND NOT WIN32) |
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x") |
|
endif () |
|
endif () |
|
|
|
################# dependencies ################# |
|
### Qt/KDE |
|
if (NOT BREEZE_COMMON_USE_KDE4) |
|
find_package(Qt5 REQUIRED CONFIG COMPONENTS Widgets) |
|
endif () |
|
|
|
################# configuration ################# |
|
configure_file(config-breezecommon.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-breezecommon.h ) |
|
|
|
################# breezestyle target ################# |
|
set(breezecommon_LIB_SRCS |
|
breezeboxshadowrenderer.cpp |
|
) |
|
|
|
if (BREEZE_COMMON_USE_KDE4) |
|
kde4_add_library(breezecommon4 SHARED ${breezecommon_LIB_SRCS}) |
|
|
|
generate_export_header(breezecommon4 |
|
BASE_NAME breezecommon |
|
EXPORT_FILE_NAME breezecommon_export.h) |
|
|
|
target_link_libraries(breezecommon4 ${KDE4_KDEUI_LIBS}) |
|
|
|
set_target_properties(breezecommon4 PROPERTIES |
|
VERSION ${PROJECT_VERSION} |
|
SOVERSION ${PROJECT_VERSION_MAJOR}) |
|
|
|
install(TARGETS breezecommon4 ${INSTALL_TARGETS_DEFAULT_ARGS} LIBRARY NAMELINK_SKIP) |
|
else () |
|
add_library(breezecommon5 ${breezecommon_LIB_SRCS}) |
|
|
|
generate_export_header(breezecommon5 |
|
BASE_NAME breezecommon |
|
EXPORT_FILE_NAME breezecommon_export.h) |
|
|
|
target_link_libraries(breezecommon5 |
|
PUBLIC |
|
Qt5::Core |
|
Qt5::Gui) |
|
|
|
set_target_properties(breezecommon5 PROPERTIES |
|
VERSION ${PROJECT_VERSION} |
|
SOVERSION ${PROJECT_VERSION_MAJOR}) |
|
|
|
install(TARGETS breezecommon5 ${INSTALL_TARGETS_DEFAULT_ARGS} LIBRARY NAMELINK_SKIP) |
|
endif ()
|
|
|