Changeset View
Changeset View
Standalone View
Standalone View
liboxygen/CMakeLists.txt
Show All 30 Lines | 19 | ) | |||
---|---|---|---|---|---|
31 | 31 | | |||
32 | set_target_properties(oxygenstyle PROPERTIES VERSION ${PROJECT_VERSION} SOVERSION ${PROJECT_VERSION_MAJOR}) | 32 | set_target_properties(oxygenstyle PROPERTIES VERSION ${PROJECT_VERSION} SOVERSION ${PROJECT_VERSION_MAJOR}) | ||
33 | 33 | | |||
34 | if(WIN32) | 34 | if(WIN32) | ||
35 | # As stated in http://msdn.microsoft.com/en-us/library/4hwaceh6.aspx M_PI only gets defined | 35 | # As stated in http://msdn.microsoft.com/en-us/library/4hwaceh6.aspx M_PI only gets defined | ||
36 | # when using MSVC if _USE_MATH_DEFINES is defined (this is needed for angle.cpp) | 36 | # when using MSVC if _USE_MATH_DEFINES is defined (this is needed for angle.cpp) | ||
37 | target_compile_definitions(oxygenstyle PRIVATE _USE_MATH_DEFINES _GNU_SOURCE) | 37 | target_compile_definitions(oxygenstyle PRIVATE _USE_MATH_DEFINES _GNU_SOURCE) | ||
38 | endif() | 38 | endif() | ||
39 | install(TARGETS oxygenstyle ${INSTALL_TARGETS_DEFAULT_ARGS}) | 39 | install(TARGETS oxygenstyle ${INSTALL_TARGETS_DEFAULT_ARGS} LIBRARY NAMELINK_SKIP) | ||
40 | 40 | | |||
41 | else() | 41 | else() | ||
42 | 42 | | |||
43 | kconfig_add_kcfg_files(oxygenstyle_LIB_SRCS | 43 | kconfig_add_kcfg_files(oxygenstyle_LIB_SRCS | ||
44 | oxygenactiveshadowconfiguration.kcfgc | 44 | oxygenactiveshadowconfiguration.kcfgc | ||
45 | oxygeninactiveshadowconfiguration.kcfgc | 45 | oxygeninactiveshadowconfiguration.kcfgc | ||
46 | ) | 46 | ) | ||
47 | 47 | | |||
Show All 22 Lines | 64 | ) | |||
70 | endif() | 70 | endif() | ||
71 | 71 | | |||
72 | set_target_properties(oxygenstyle5 PROPERTIES VERSION ${PROJECT_VERSION} SOVERSION ${PROJECT_VERSION_MAJOR}) | 72 | set_target_properties(oxygenstyle5 PROPERTIES VERSION ${PROJECT_VERSION} SOVERSION ${PROJECT_VERSION_MAJOR}) | ||
73 | if(WIN32) | 73 | if(WIN32) | ||
74 | # As stated in http://msdn.microsoft.com/en-us/library/4hwaceh6.aspx M_PI only gets defined | 74 | # As stated in http://msdn.microsoft.com/en-us/library/4hwaceh6.aspx M_PI only gets defined | ||
75 | # when using MSVC if _USE_MATH_DEFINES is defined (this is needed for angle.cpp) | 75 | # when using MSVC if _USE_MATH_DEFINES is defined (this is needed for angle.cpp) | ||
76 | target_compile_definitions(oxygenstyle5 PRIVATE _USE_MATH_DEFINES _GNU_SOURCE) | 76 | target_compile_definitions(oxygenstyle5 PRIVATE _USE_MATH_DEFINES _GNU_SOURCE) | ||
77 | endif() | 77 | endif() | ||
78 | install(TARGETS oxygenstyle5 ${INSTALL_TARGETS_DEFAULT_ARGS}) | 78 | install(TARGETS oxygenstyle5 ${INSTALL_TARGETS_DEFAULT_ARGS} LIBRARY NAMELINK_SKIP) | ||
79 | 79 | | |||
80 | endif() | 80 | endif() | ||
81 | 81 | | |||
82 | ################# liboxygenstyleconfig ################# | 82 | ################# liboxygenstyleconfig ################# | ||
83 | set(oxygenstyleconfig_LIB_SRCS | 83 | set(oxygenstyleconfig_LIB_SRCS | ||
84 | oxygenanimationconfigitem.cpp | 84 | oxygenanimationconfigitem.cpp | ||
85 | oxygenbaseanimationconfigwidget.cpp | 85 | oxygenbaseanimationconfigwidget.cpp | ||
86 | oxygengenericanimationconfigitem.cpp | 86 | oxygengenericanimationconfigitem.cpp | ||
Show All 19 Lines | 105 | kde4_add_library(oxygenstyleconfig SHARED | |||
106 | ${oxygenstyleconfig_LIB_SRCS} | 106 | ${oxygenstyleconfig_LIB_SRCS} | ||
107 | ${oxygenstyleconfig_LIB_FORMS_HEADERS}) | 107 | ${oxygenstyleconfig_LIB_FORMS_HEADERS}) | ||
108 | 108 | | |||
109 | generate_export_header(oxygenstyleconfig BASE_NAME oxygen_config EXPORT_FILE_NAME oxygen_config_export.h) | 109 | generate_export_header(oxygenstyleconfig BASE_NAME oxygen_config EXPORT_FILE_NAME oxygen_config_export.h) | ||
110 | 110 | | |||
111 | target_link_libraries(oxygenstyleconfig ${KDE4_KDEUI_LIBS}) | 111 | target_link_libraries(oxygenstyleconfig ${KDE4_KDEUI_LIBS}) | ||
112 | 112 | | |||
113 | set_target_properties(oxygenstyleconfig PROPERTIES VERSION ${PROJECT_VERSION} SOVERSION ${PROJECT_VERSION_MAJOR}) | 113 | set_target_properties(oxygenstyleconfig PROPERTIES VERSION ${PROJECT_VERSION} SOVERSION ${PROJECT_VERSION_MAJOR}) | ||
114 | install(TARGETS oxygenstyleconfig ${INSTALL_TARGETS_DEFAULT_ARGS}) | 114 | install(TARGETS oxygenstyleconfig ${INSTALL_TARGETS_DEFAULT_ARGS} LIBRARY NAMELINK_SKIP) | ||
115 | 115 | | |||
116 | # NB: although we install no headers, we still need to have a link | 116 | # NB: although we install no headers, we still need to have a link | ||
117 | # interface, since other Oxygen targets link to this library | 117 | # interface, since other Oxygen targets link to this library | ||
118 | target_link_libraries(oxygenstyleconfig oxygenstyle) | 118 | target_link_libraries(oxygenstyleconfig oxygenstyle) | ||
119 | 119 | | |||
120 | else() | 120 | else() | ||
121 | 121 | | |||
122 | ki18n_wrap_ui(oxygenstyleconfig_LIB_FORMS_HEADERS ${oxygenstyleconfig_LIB_FORMS}) | 122 | ki18n_wrap_ui(oxygenstyleconfig_LIB_FORMS_HEADERS ${oxygenstyleconfig_LIB_FORMS}) | ||
Show All 17 Lines | 138 | PUBLIC | |||
140 | Qt5::Core | 140 | Qt5::Core | ||
141 | Qt5::Gui | 141 | Qt5::Gui | ||
142 | Qt5::Widgets | 142 | Qt5::Widgets | ||
143 | PRIVATE | 143 | PRIVATE | ||
144 | KF5::I18n | 144 | KF5::I18n | ||
145 | ) | 145 | ) | ||
146 | 146 | | |||
147 | set_target_properties(oxygenstyleconfig5 PROPERTIES VERSION ${PROJECT_VERSION} SOVERSION ${PROJECT_VERSION_MAJOR}) | 147 | set_target_properties(oxygenstyleconfig5 PROPERTIES VERSION ${PROJECT_VERSION} SOVERSION ${PROJECT_VERSION_MAJOR}) | ||
148 | install(TARGETS oxygenstyleconfig5 ${INSTALL_TARGETS_DEFAULT_ARGS}) | 148 | install(TARGETS oxygenstyleconfig5 ${INSTALL_TARGETS_DEFAULT_ARGS} LIBRARY NAMELINK_SKIP) | ||
149 | # Note: no headers installed | 149 | # Note: no headers installed | ||
150 | 150 | | |||
151 | endif() | 151 | endif() |