summaryrefslogtreecommitdiffstats
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2022-06-18 22:59:25 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2022-07-10 17:21:43 +0900
commitbc7518bdba609f90ee89de8b4e7ddaa1e567b1a8 (patch)
tree7a3f446098bbdaafc799fc97dd1bb998a2456252 /src/CMakeLists.txt
parentf3116341d095d1b0237f7a36d1f3511759da7b03 (diff)
downloadtderadio-bc7518bdba609f90ee89de8b4e7ddaa1e567b1a8.tar.gz
tderadio-bc7518bdba609f90ee89de8b4e7ddaa1e567b1a8.zip
CMake conversion.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt89
1 files changed, 89 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
new file mode 100644
index 0000000..f8370cd
--- /dev/null
+++ b/src/CMakeLists.txt
@@ -0,0 +1,89 @@
+include_directories(
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}/include
+ ${CMAKE_BINARY_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${TDE_INCLUDE_DIR}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${TDE_LIB_DIR}
+)
+
+
+##### tderadio (translations)
+
+tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )
+
+
+##### tderadio (shared)
+
+tde_add_library( tderadio SHARED AUTOMOC
+ META_INCLUDES ${CMAKE_CURRENT_SOURCE_DIR}/include
+ SOURCES
+ alarm.cpp
+ debug-profiler.cpp
+ errorlog-interfaces.cpp
+ fileringbuffer.cpp
+ frequencyradiostation.cpp
+ frequencyseekhelper.cpp
+ internetradiostation.cpp
+ multibuffer.cpp
+ plugin_configuration_dialog.cpp
+ plugins.cpp
+ pluginmanager.cpp
+ pluginmanager-configuration.cpp
+ pluginmanager-configuration-ui.ui
+ radio_interfaces.cpp
+ radiodevice_interfaces.cpp
+ radiodevicepool_interfaces.cpp
+ radiostation.cpp
+ radiostation-config.cpp
+ radiostation-listview.cpp
+ ringbuffer.cpp
+ seekhelper.cpp
+ soundformat.cpp
+ soundstreamclient_interfaces.cpp
+ soundstreamid.cpp
+ standardscandialog.cpp
+ standardscandialog-ui.ui
+ station-drag-object.cpp
+ stationlist.cpp
+ stationlistxmlhandler.cpp
+ stationselection_interfaces.cpp
+ stationselector.cpp
+ stationselector-ui.ui
+ timecontrol_interfaces.cpp
+ utils.cpp
+ widgetplugins.cpp
+
+ LINK tdecore-shared tdeui-shared tdeio-shared
+ VERSION 0.0.0
+ DESTINATION ${LIB_INSTALL_DIR}
+)
+
+
+##### tderadio (executable)
+
+tde_add_executable( tderadio AUTOMOC
+ META_INCLUDES ${CMAKE_CURRENT_SOURCE_DIR}/include
+ SOURCES
+ main.cpp
+ tderadioapp.cpp
+ aboutwidget.cpp
+
+ LINK tderadio-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### other data
+
+tde_create_translated_desktop( tderadio.desktop )
+
+INSTALL(
+ FILES tderadio.xpm
+ DESTINATION ${SHARE_INSTALL_PREFIX}/pixmaps
+)