kde-workspace/libs/oxygen/CMakeLists.txt
2015-09-01 04:37:19 +03:00

48 lines
1.4 KiB
CMake

set(oxygenstyle_LIB_SRCS
oxygenhelper.cpp
oxygenitemmodel.cpp
oxygenshadowcache.cpp
oxygentileset.cpp
oxygenutil.cpp
)
kde4_add_kcfg_files(oxygenstyle_LIB_SRCS
oxygenactiveshadowconfiguration.kcfgc
oxygeninactiveshadowconfiguration.kcfgc
)
add_library(oxygenstyle SHARED ${oxygenstyle_LIB_SRCS})
target_link_libraries(oxygenstyle ${KDE4_KDEUI_LIBS})
if ( X11_FOUND )
target_link_libraries(oxygenstyle ${X11_LIBRARIES})
endif( X11_FOUND )
set_target_properties(oxygenstyle PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} )
install(TARGETS oxygenstyle ${INSTALL_TARGETS_DEFAULT_ARGS} )
# next target
set(oxygenstyleconfig_LIB_SRCS
oxygenshadowconfigwidget.cpp
oxygenshadowconfigurationui.ui
)
kde4_add_kcfg_files(oxygenstyleconfig_LIB_SRCS
oxygenactiveshadowconfiguration.kcfgc
oxygeninactiveshadowconfiguration.kcfgc
)
add_library(oxygenstyleconfig SHARED ${oxygenstyleconfig_LIB_SRCS})
target_link_libraries(oxygenstyleconfig oxygenstyle)
target_link_libraries(oxygenstyleconfig ${KDE4_KDEUI_LIBS})
if ( X11_FOUND )
target_link_libraries(oxygenstyleconfig ${X11_LIBRARIES})
endif( X11_FOUND )
set_target_properties(oxygenstyleconfig PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} DEFINE_SYMBOL MAKE_OXYGENSTYLE_LIB)
install(TARGETS oxygenstyleconfig ${INSTALL_TARGETS_DEFAULT_ARGS} )
# Note: no headers installed