summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-05-13 23:27:12 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-05-13 23:27:12 -0500
commit0deab11cb6172669b3165bf4144ef0c5b3da8b81 (patch)
tree11fb24dbdd83142319c58dd9ddcb60f7c242ad01 /src
parentc85a1eae45c14583bd8ba036c36a90352d2ef0f5 (diff)
downloadgtk-qt-engine-0deab11cb6172669b3165bf4144ef0c5b3da8b81.tar.gz
gtk-qt-engine-0deab11cb6172669b3165bf4144ef0c5b3da8b81.zip
Use standard tde_add_library CMake methods to gain SCM information in crash reporter
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt31
1 files changed, 13 insertions, 18 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 6eaaad4..195eaab 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -1,27 +1,22 @@
-# Sources
-SET(GTK-QT-SOURCES
- qt_main.c
- qt_qt_wrapper.cpp
- qt_rc_style.c
- qt_theme_draw.c)
+set( target qtengine )
-ADD_LIBRARY(qtengine SHARED ${GTK-QT-SOURCES})
+set( ${target}_SRCS
+ qt_main.c
+ qt_qt_wrapper.cpp
+ qt_rc_style.c
+ qt_theme_draw.c
+)
+
+tde_add_library( ${target} SHARED AUTOMOC
+ SOURCES ${${target}_SRCS}
+ LINK ${GTK_LINK_FLAGS} ${BONOBO_LINK_FLAGS} ${TQT_LIBRARIES} -lX11 -ltdecore
+ DESTINATION ${INSTALL_PATH_GTK_ENGINES}
+)
# Add GTK's cflags
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${GTK_CFLAGS} ${BONOBO_CFLAGS}")
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${GTK_CFLAGS} ${BONOBO_CFLAGS}")
-TARGET_LINK_LIBRARIES(qtengine ${GTK_LINK_FLAGS} ${BONOBO_LINK_FLAGS} ${TQT_LIBRARIES} -lX11 -ltdecore)
-
-INSTALL(
- TARGETS qtengine
- DESTINATION ${INSTALL_PATH_GTK_ENGINES}
- PERMISSIONS
- OWNER_READ OWNER_WRITE OWNER_EXECUTE
- GROUP_READ GROUP_EXECUTE
- WORLD_READ WORLD_EXECUTE
-)
-
INSTALL(
FILES gtkrc
DESTINATION "${INSTALL_PATH_GTK_THEMES}/Qt/gtk-2.0"