summaryrefslogtreecommitdiffstats
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
authorgregory guy <[email protected]>2018-09-22 22:25:19 +0200
committergregory guy <[email protected]>2018-09-22 22:25:19 +0200
commitb0ef7f15a77b7c247b4852cb59976dafd4c09c09 (patch)
treeebe018f522ab8469aede128eecf228a54d8db1fe /src/CMakeLists.txt
parent636207522d423fdd33222a4f9cfe1b593c962125 (diff)
downloadklcddimmer-b0ef7f15a77b7c247b4852cb59976dafd4c09c09.tar.gz
klcddimmer-b0ef7f15a77b7c247b4852cb59976dafd4c09c09.zip
conversion to the cmake building system
Signed-off-by: gregory guy <[email protected]>
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt45
1 files changed, 45 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
new file mode 100644
index 0000000..11024ad
--- /dev/null
+++ b/src/CMakeLists.txt
@@ -0,0 +1,45 @@
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${TDE_LIB_DIR}
+)
+
+
+##### klcddimmer_panelapplet (shared)
+
+tde_add_library( klcddimmer_panelapplet SHARED AUTOMOC
+
+ SOURCES
+ brightnesschooser.ui
+ brightnesschooserimpl.cpp
+ klcddimmer.cpp
+ klcddimmerapplet.cpp
+ preferences.kcfg
+ preferences.kcfgc
+ progpreferences.ui
+ LINK
+ tdeui-shared
+ tdecore-shared
+
+ DESTINATION ${LIB_INSTALL_DIR}
+)
+
+
+##### icons
+
+tde_install_icons( ${PROJECT_NAME} )
+
+
+##### other data
+
+install(
+ FILES ${PROJECT_NAME}.desktop
+ DESTINATION ${DATA_INSTALL_DIR}/kicker/applets
+)