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 /CMakeLists.txt | |
| parent | 93d1a5a4d403da1b3332fce335d21819e6dccf5e (diff) | |
split CMakeLists into top and src/ , add find_package(TQt/TDE), drop hardcoded paths
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 45 |
1 files changed, 6 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} -) |
