diff --git a/CMakeLists.txt b/CMakeLists.txt
index e8dd723..fe0839c 100644
a
|
b
|
option(QTC_QT4_STYLE_SUPPORT |
44 | 44 | option(QTC_GTK2_MODIFY_MOZILLA "Modify Mozilla Gtk2 with js and css." Off) |
45 | 45 | |
46 | 46 | ## Common settings. |
| 47 | # support an infix argument to have different qtcurve-utils libraries, e.g. for |
| 48 | # GTk2, Qt4 and Qt5 |
| 49 | if(DEFINED QTC_UTILSLIB_INFIX) |
| 50 | set(QTC_UTILS_LIBRARY "qtcurve-utils-${QTC_UTILSLIB_INFIX}") |
| 51 | else() |
| 52 | set(QTC_UTILS_LIBRARY "qtcurve-utils") |
| 53 | endif() |
| 54 | message(STATUS "QTC_UTILS_LIBRARY=${QTC_UTILS_LIBRARY}") |
| 55 | |
47 | 56 | # Only try to figure out what kde prefix is if not specified at command line. |
48 | 57 | if(NOT DEFINED QTC_KDE4_PREFIX) |
49 | 58 | find_package(KDE4) |
diff --git a/gtk2/style/CMakeLists.txt b/gtk2/style/CMakeLists.txt
index 451ecdd..1f3777a 100644
a
|
b
|
add_definitions(-Dopts=qtcurve_gtk2_opts) |
84 | 84 | target_link_libraries(qtcurve-gtk2 |
85 | 85 | ${GTK2_LDFLAGS} |
86 | 86 | ${GTK2_LIBRARIES} |
87 | | qtcurve-utils qtcurve-cairo m) |
| 87 | ${QTC_UTILS_LIBRARY} qtcurve-cairo m) |
88 | 88 | |
89 | 89 | install(TARGETS qtcurve-gtk2 LIBRARY DESTINATION |
90 | 90 | ${GTK2_LIBDIR}/gtk-2.0/${GTK2_BIN_VERSION}/engines) |
diff --git a/lib/cairo/CMakeLists.txt b/lib/cairo/CMakeLists.txt
index 3363e46..9153a5e 100644
a
|
b
|
pkg_check_modules(CAIRO |
12 | 12 | REQUIRED cairo |
13 | 13 | REQUIRED pangocairo) |
14 | 14 | include_directories(${CAIRO_INCLUDE_DIRS}) |
15 | | set(qtcurve_cairo_LINKS qtcurve-utils ${CAIRO_LDFLAGSF} ${CAIRO_LIBRARIES}) |
| 15 | set(qtcurve_cairo_LINKS ${QTC_UTILS_LIBRARY} ${CAIRO_LDFLAGSF} ${CAIRO_LIBRARIES}) |
16 | 16 | add_definitions("-DQTC_UTILS_INTERNAL" ${CAIRO_CFLAGS}) |
17 | 17 | |
18 | 18 | add_library(qtcurve-cairo SHARED ${qtcurve_cairo_SRCS}) |
diff --git a/lib/utils/CMakeLists.txt b/lib/utils/CMakeLists.txt
index 0dd71c1..65b6fdd 100644
a
|
b
|
endif() |
33 | 33 | |
34 | 34 | add_definitions("-DQTC_UTILS_INTERNAL -pthread") |
35 | 35 | |
36 | | add_library(qtcurve-utils SHARED |
| 36 | add_library(${QTC_UTILS_LIBRARY} SHARED |
37 | 37 | ${qtcurve_utils_SRCS}) |
38 | 38 | |
39 | | target_link_libraries(qtcurve-utils ${qtcurve_utils_LINKS}) |
| 39 | target_link_libraries(${QTC_UTILS_LIBRARY} ${qtcurve_utils_LINKS}) |
40 | 40 | |
41 | | set_target_properties(qtcurve-utils PROPERTIES |
| 41 | set_target_properties(${QTC_UTILS_LIBRARY} PROPERTIES |
42 | 42 | VERSION 1.0 |
43 | 43 | SOVERSION 1 |
44 | 44 | COMPILE_FLAGS "-fvisibility=hidden" |
45 | 45 | LIBRARY_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}") |
46 | | install(TARGETS qtcurve-utils LIBRARY |
| 46 | install(TARGETS ${QTC_UTILS_LIBRARY} LIBRARY |
47 | 47 | DESTINATION "${LIB_INSTALL_DIR}") |
diff --git a/qt4/config/CMakeLists.txt b/qt4/config/CMakeLists.txt
index 3b65e09..d54dff9 100644
a
|
b
|
set_target_properties(kstyle_qtcurve_config_kde4 PROPERTIES |
55 | 55 | target_link_libraries(kstyle_qtcurve_config_kde4 |
56 | 56 | ${KDE4_KDEUI_LIBS} ${KDE4_KIO_LIBS} |
57 | 57 | ${KDE4_KDECORE_LIBS} ${QT_QTGUI_LIBRARY} |
58 | | qtcurve-utils) |
| 58 | ${QTC_UTILS_LIBRARY}) |
59 | 59 | install(TARGETS kstyle_qtcurve_config_kde4 |
60 | 60 | DESTINATION "${PLUGIN_INSTALL_DIR}") |
61 | 61 | install(FILES QtCurveui.rc DESTINATION "${DATA_INSTALL_DIR}/QtCurve") |
diff --git a/qt4/kwin/CMakeLists.txt b/qt4/kwin/CMakeLists.txt
index 52c7c03..832b49f 100644
a
|
b
|
set_target_properties(kwin3_qtcurve_kde4 PROPERTIES |
36 | 36 | LIBRARY_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}" |
37 | 37 | OUTPUT_NAME "kwin3_qtcurve") |
38 | 38 | target_link_libraries(kwin3_qtcurve_kde4 kdecorations |
39 | | ${KDE4_KDEUI_LIBS} qtcurve-utils) |
| 39 | ${KDE4_KDEUI_LIBS} ${QTC_UTILS_LIBRARY}) |
40 | 40 | install(TARGETS kwin3_qtcurve_kde4 DESTINATION "${PLUGIN_INSTALL_DIR}") |
41 | 41 | install(FILES qtcurve.desktop DESTINATION "${DATA_INSTALL_DIR}/kwin/") |
diff --git a/qt4/kwinconfig/CMakeLists.txt b/qt4/kwinconfig/CMakeLists.txt
index 1de6dc2..8f269c6 100644
a
|
b
|
set_target_properties(kwin_qtcurve_config_kde4 PROPERTIES |
25 | 25 | OUTPUT_NAME "kwin_qtcurve_config") |
26 | 26 | include_directories("${CMAKE_CURRENT_BINARY_DIR}") |
27 | 27 | target_link_libraries(kwin_qtcurve_config_kde4 |
28 | | ${KDE4_KDEUI_LIBS} ${QT_QTGUI_LIBRARY} qtcurve-utils) |
| 28 | ${KDE4_KDEUI_LIBS} ${QT_QTGUI_LIBRARY} ${QTC_UTILS_LIBRARY}) |
29 | 29 | install(TARGETS kwin_qtcurve_config_kde4 DESTINATION ${PLUGIN_INSTALL_DIR}) |
diff --git a/qt4/style/CMakeLists.txt b/qt4/style/CMakeLists.txt
index 4ac461f..8b82d92 100644
a
|
b
|
target_link_libraries(qtcurve-qt4 |
79 | 79 | ${QT_QTCORE_LIBRARY} |
80 | 80 | ${QT_QTSVG_LIBRARY} |
81 | 81 | ${QT_QTDBUS_LIBRARY} |
82 | | qtcurve-utils) |
| 82 | ${QTC_UTILS_LIBRARY}) |
83 | 83 | |
84 | 84 | if(QTC_QT4_ENABLE_KDE) |
85 | 85 | install(TARGETS qtcurve-qt4 DESTINATION ${QTCURVE_STYLE_DIR}) |
diff --git a/qt5/config/CMakeLists.txt b/qt5/config/CMakeLists.txt
index b4184dd..9409082 100644
a
|
b
|
target_link_libraries(kstyle_qtcurve5_config |
60 | 60 | KF5::KIOWidgets |
61 | 61 | KF5::WidgetsAddons |
62 | 62 | KF5::XmlGui) |
63 | | target_link_libraries(kstyle_qtcurve5_config qtcurve-utils) |
| 63 | target_link_libraries(kstyle_qtcurve5_config ${QTC_UTILS_LIBRARY}) |
64 | 64 | |
65 | 65 | install(TARGETS kstyle_qtcurve5_config DESTINATION ${QT_PLUGIN_INSTALL_DIR}) |
diff --git a/qt5/kwin/CMakeLists.txt b/qt5/kwin/CMakeLists.txt
index 52c7c03..832b49f 100644
a
|
b
|
set_target_properties(kwin3_qtcurve_kde4 PROPERTIES |
36 | 36 | LIBRARY_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}" |
37 | 37 | OUTPUT_NAME "kwin3_qtcurve") |
38 | 38 | target_link_libraries(kwin3_qtcurve_kde4 kdecorations |
39 | | ${KDE4_KDEUI_LIBS} qtcurve-utils) |
| 39 | ${KDE4_KDEUI_LIBS} ${QTC_UTILS_LIBRARY}) |
40 | 40 | install(TARGETS kwin3_qtcurve_kde4 DESTINATION "${PLUGIN_INSTALL_DIR}") |
41 | 41 | install(FILES qtcurve.desktop DESTINATION "${DATA_INSTALL_DIR}/kwin/") |
diff --git a/qt5/kwinconfig/CMakeLists.txt b/qt5/kwinconfig/CMakeLists.txt
index 1de6dc2..8f269c6 100644
a
|
b
|
set_target_properties(kwin_qtcurve_config_kde4 PROPERTIES |
25 | 25 | OUTPUT_NAME "kwin_qtcurve_config") |
26 | 26 | include_directories("${CMAKE_CURRENT_BINARY_DIR}") |
27 | 27 | target_link_libraries(kwin_qtcurve_config_kde4 |
28 | | ${KDE4_KDEUI_LIBS} ${QT_QTGUI_LIBRARY} qtcurve-utils) |
| 28 | ${KDE4_KDEUI_LIBS} ${QT_QTGUI_LIBRARY} ${QTC_UTILS_LIBRARY}) |
29 | 29 | install(TARGETS kwin_qtcurve_config_kde4 DESTINATION ${PLUGIN_INSTALL_DIR}) |
diff --git a/qt5/style/CMakeLists.txt b/qt5/style/CMakeLists.txt
index c78a73d..4a0deb5 100644
a
|
b
|
set_target_properties(qtcurve-qt5 PROPERTIES |
62 | 62 | add_dependencies(qtcurve-qt5 qtc_qt5_check_on_hdr qtc_qt5_check_x_on_hdr |
63 | 63 | qtc_qt5_dialog_error_hdr qtc_qt5_dialog_information_hdr |
64 | 64 | qtc_qt5_dialog_warning_hdr) |
65 | | target_link_libraries(qtcurve-qt5 ${QTC_QT5_LINK_LIBS} qtcurve-utils) |
| 65 | target_link_libraries(qtcurve-qt5 ${QTC_QT5_LINK_LIBS} ${QTC_UTILS_LIBRARY}) |
66 | 66 | install(TARGETS qtcurve-qt5 LIBRARY DESTINATION ${QTCURVE_STYLE_DIR}) |
67 | 67 | |
68 | 68 | if(QTC_QT5_ENABLE_KDE) |
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 007c595..b993a3b 100644
a
|
b
|
add_definitions(-UNDEBUG) |
4 | 4 | remove_definitions(-DNDEBUG) |
5 | 5 | |
6 | 6 | add_executable(test-version test-version.c) |
7 | | target_link_libraries(test-version qtcurve-utils) |
| 7 | target_link_libraries(test-version ${QTC_UTILS_LIBRARY}) |
8 | 8 | add_test(NAME test-version COMMAND test-version) |
9 | 9 | |
10 | 10 | add_executable(test-buff test-buff.c) |
11 | | target_link_libraries(test-buff qtcurve-utils) |
| 11 | target_link_libraries(test-buff ${QTC_UTILS_LIBRARY}) |
12 | 12 | add_test(NAME test-buff COMMAND test-buff) |
13 | 13 | |
14 | 14 | add_executable(test-search test-search.c) |
15 | | target_link_libraries(test-search qtcurve-utils) |
| 15 | target_link_libraries(test-search ${QTC_UTILS_LIBRARY}) |
16 | 16 | add_test(NAME test-search COMMAND test-search) |
17 | 17 | |
18 | 18 | add_executable(test-strmap test-strmap.c) |
19 | | target_link_libraries(test-strmap qtcurve-utils) |
| 19 | target_link_libraries(test-strmap ${QTC_UTILS_LIBRARY}) |
20 | 20 | add_test(NAME test-strmap COMMAND test-strmap) |
21 | 21 | |
22 | 22 | add_executable(test-printf test-printf.c) |
23 | | target_link_libraries(test-printf qtcurve-utils) |
| 23 | target_link_libraries(test-printf ${QTC_UTILS_LIBRARY}) |
24 | 24 | add_test(NAME test-printf COMMAND test-printf) |
25 | 25 | |
26 | 26 | add_executable(test-strlist test-strlist.c) |
27 | | target_link_libraries(test-strlist qtcurve-utils) |
| 27 | target_link_libraries(test-strlist ${QTC_UTILS_LIBRARY}) |
28 | 28 | add_test(NAME test-strlist COMMAND test-strlist) |
29 | 29 | |
30 | 30 | add_executable(test-default-arg test-default-arg.c) |
31 | | target_link_libraries(test-default-arg qtcurve-utils) |
| 31 | target_link_libraries(test-default-arg ${QTC_UTILS_LIBRARY}) |
32 | 32 | add_test(NAME test-default-arg COMMAND test-default-arg) |
33 | 33 | |
34 | 34 | add_executable(test-default-arg-cpp test-default-arg.cpp) |
35 | | target_link_libraries(test-default-arg-cpp qtcurve-utils) |
| 35 | target_link_libraries(test-default-arg-cpp ${QTC_UTILS_LIBRARY}) |
36 | 36 | add_test(NAME test-default-arg-cpp COMMAND test-default-arg-cpp) |
37 | 37 | |
38 | 38 | add_executable(test-color-str test-color-str.c) |
39 | | target_link_libraries(test-color-str qtcurve-utils) |
| 39 | target_link_libraries(test-color-str ${QTC_UTILS_LIBRARY}) |
40 | 40 | add_test(NAME test-color-str COMMAND test-color-str) |
41 | 41 | |
42 | 42 | add_executable(test-default test-default.c) |
43 | | target_link_libraries(test-default qtcurve-utils) |
| 43 | target_link_libraries(test-default ${QTC_UTILS_LIBRARY}) |
44 | 44 | add_test(NAME test-default COMMAND test-default) |
45 | 45 | |
46 | 46 | add_executable(test-default-cpp test-default.cpp) |
47 | | target_link_libraries(test-default-cpp qtcurve-utils) |
| 47 | target_link_libraries(test-default-cpp ${QTC_UTILS_LIBRARY}) |
48 | 48 | add_test(NAME test-default-cpp COMMAND test-default-cpp) |
49 | 49 | |
50 | 50 | add_executable(test-call test-call.c) |
51 | | target_link_libraries(test-call qtcurve-utils) |
| 51 | target_link_libraries(test-call ${QTC_UTILS_LIBRARY}) |
52 | 52 | add_test(NAME test-call COMMAND test-call) |
53 | 53 | |
54 | 54 | add_executable(test-call-cpp test-call.cpp) |
55 | | target_link_libraries(test-call-cpp qtcurve-utils) |
| 55 | target_link_libraries(test-call-cpp ${QTC_UTILS_LIBRARY}) |
56 | 56 | add_test(NAME test-call-cpp COMMAND test-call-cpp) |
57 | 57 | |
58 | 58 | add_executable(test-process test-process.c) |
59 | | target_link_libraries(test-process qtcurve-utils) |
| 59 | target_link_libraries(test-process ${QTC_UTILS_LIBRARY}) |
60 | 60 | add_test(NAME test-process COMMAND test-process) |
61 | 61 | |
62 | 62 | add_executable(test-popen test-popen.c) |
63 | | target_link_libraries(test-popen qtcurve-utils) |
| 63 | target_link_libraries(test-popen ${QTC_UTILS_LIBRARY}) |
64 | 64 | add_test(NAME test-popen COMMAND test-popen) |
65 | 65 | |
66 | 66 | add_executable(test-popen-buff test-popen-buff.c) |
67 | | target_link_libraries(test-popen-buff qtcurve-utils) |
| 67 | target_link_libraries(test-popen-buff ${QTC_UTILS_LIBRARY}) |
68 | 68 | add_test(NAME test-popen-buff COMMAND test-popen-buff) |