diff options
| author | Calvin Morrison <calvin@pobox.com> | 2026-05-16 21:53:40 -0400 |
|---|---|---|
| committer | Calvin Morrison <calvin@pobox.com> | 2026-05-16 22:06:23 -0400 |
| commit | f7e95a26aa556ddd33f18455175a39b80b19f679 (patch) | |
| tree | 67dbb1590f73f204efc4158f73da3d137b4a0ff2 | |
| parent | 93d1a5a4d403da1b3332fce335d21819e6dccf5e (diff) | |
split CMakeLists into top and src/ , add find_package(TQt/TDE), drop hardcoded paths
| -rw-r--r-- | CMakeLists.txt | 45 | ||||
| -rw-r--r-- | src/CMakeLists.txt | 40 |
2 files changed, 46 insertions, 39 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index bf56d96..773b32f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,23 +8,15 @@ tde_setup_paths() include( FindPkgConfig ) find_package( TQt ) +find_package( TDE ) -pkg_check_modules( PULSE REQUIRED libpulse ) +set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" ) -include_directories( - ${CMAKE_CURRENT_BINARY_DIR} - ${TQT_INCLUDE_DIRS} - /usr/include/tqt3 - /usr/include/tqt - ${TDE_INCLUDE_DIR} - /opt/trinity/include - ${PULSE_INCLUDE_DIRS} -) +##### subdirectories ############################ -link_directories( - ${TQT_LIBRARY_DIRS} - /opt/trinity/lib -) +add_subdirectory( src ) + +##### install data ############################## install( DIRECTORY img/ @@ -45,28 +37,3 @@ install( FILES img/tmix-32.png RENAME tmix.png DESTINATION ${DATA_INSTALL_DIR}/icons/hicolor/32x32/apps ) install( FILES img/tmix-48.png RENAME tmix.png DESTINATION ${DATA_INSTALL_DIR}/icons/hicolor/48x48/apps ) - -tde_add_executable( tmix AUTOMOC - SOURCES - src/main.cpp - src/model/audiodevice.cpp - src/model/pulsedevice.cpp - src/model/pulsemodel.cpp - src/ui/balanceknob.cpp - src/ui/devicewidget.cpp - src/ui/preferencesdlg.cpp - src/ui/kledbutton.cpp - src/ui/levelmeter.cpp - src/ui/devicespage.cpp - src/ui/tmixpopup.cpp - src/ui/tmixtray.cpp - src/ui/tmixapp.cpp - src/ui/mixerwindow.cpp - LINK - tqt-mt - tdecore - tdeui - DCOP - ${PULSE_LIBRARIES} - DESTINATION ${BIN_INSTALL_DIR} -) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt new file mode 100644 index 0000000..5623ade --- /dev/null +++ b/src/CMakeLists.txt @@ -0,0 +1,40 @@ +include( FindPkgConfig ) +pkg_check_modules( PULSE REQUIRED libpulse ) + +include_directories( + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} + ${PULSE_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + +tde_add_executable( tmix AUTOMOC + SOURCES + main.cpp + model/audiodevice.cpp + model/pulsedevice.cpp + model/pulsemodel.cpp + ui/balanceknob.cpp + ui/devicewidget.cpp + ui/preferencesdlg.cpp + ui/kledbutton.cpp + ui/levelmeter.cpp + ui/devicespage.cpp + ui/tmixpopup.cpp + ui/tmixtray.cpp + ui/tmixapp.cpp + ui/mixerwindow.cpp + LINK + tqt-mt + tdecore + tdeui + DCOP + ${PULSE_LIBRARIES} + DESTINATION ${BIN_INSTALL_DIR} +) |
