commit fe25f584c109be423621e94f76ec5ff64302eb4f parent 75ca319211e73a70656a757d8508fd5f7ff58bc8 Author: Alexandre BIQUE <bique.alexandre@gmail.com> Date: Tue, 18 May 2021 23:09:33 +0200 Cleanup cmake Diffstat:
M | CMakeLists.txt | | | 5 | +++-- |
M | examples/host/CMakeLists.txt | | | 8 | ++++---- |
2 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt @@ -4,7 +4,8 @@ project(CLAP C CXX) set(ENABLE_CLAP_HOST FALSE CACHE BOOL "Enables the example host") include_directories(include) -add_executable(clap-compile-test-c src/main.c) -add_executable(clap-compile-test-cpp src/main.cc) + +add_executable(clap-compile-test-c EXCLUDE_FROM_ALL src/main.c) +add_executable(clap-compile-test-cpp EXCLUDE_FROM_ALL src/main.cc) add_subdirectory(examples) \ No newline at end of file diff --git a/examples/host/CMakeLists.txt b/examples/host/CMakeLists.txt @@ -3,12 +3,12 @@ set(CMAKE_AUTOMOC ON) find_package(Qt6Core REQUIRED) find_package(Qt6Widgets REQUIRED) -#find_package(portaudio REQUIRED) -#find_package(portmidi REQUIRED) -include_directories(../libs) +#find_package(PkgConfig REQUIRED) +#pkg_check_modules(PortAudio REQUIRED IMPORTED_TARGET portaudio-2.0) +#pkg_check_modules(PortMidi REQUIRED IMPORTED_TARGET portmidi) -add_executable(Host +add_executable(Host EXCLUDE_FROM_ALL application.cc application.hh audio-settings.cc