Cleanup tests-cmake

This commit is contained in:
pschatzmann 2024-04-20 08:14:04 +02:00
parent 109daae193
commit c158e9441c
23 changed files with 22 additions and 31 deletions

View File

@ -24,7 +24,7 @@ if(NOT libfaad_POPULATED)
endif()
# build sketch as executable
add_executable (aac-faad aac-faad.cpp ../../main.cpp)
add_executable (aac-faad aac-faad.cpp)
# set preprocessor defines
target_compile_definitions(aac-faad PUBLIC -DARDUINO -DEXIT_ON_STOP -DUSE_PORTAUDIO -DIS_DESKTOP -DANALYSIS)

View File

@ -25,7 +25,7 @@ if(NOT fdk_aac_POPULATED)
endif()
# build sketch as executable
add_executable (aac-fdk-encode aac-fdk-encode.cpp ../../main.cpp)
add_executable (aac-fdk-encode aac-fdk-encode.cpp )
# set preprocessor defines
target_compile_definitions(aac-fdk-encode PUBLIC -DARDUINO -DEXIT_ON_STOP -DIS_DESKTOP)

View File

@ -24,7 +24,7 @@ if(NOT fdk_aac_POPULATED)
endif()
# build sketch as executable
add_executable (aac-fdk aac-fdk.cpp ../../main.cpp)
add_executable (aac-fdk aac-fdk.cpp )
# set preprocessor defines
target_compile_definitions(aac-fdk PUBLIC -DARDUINO -DEXIT_ON_STOP -DUSE_PORTAUDIO -DIS_DESKTOP)

View File

@ -24,7 +24,7 @@ if(NOT helix_POPULATED)
endif()
# build sketch as executable
add_executable (aac-helix aac-helix.cpp ../../main.cpp)
add_executable (aac-helix aac-helix.cpp)
# set preprocessor defines
target_compile_definitions(aac-helix PUBLIC -DARDUINO -DEXIT_ON_STOP -DUSE_PORTAUDIO -DIS_DESKTOP)

View File

@ -25,7 +25,7 @@ if(NOT adpcm_ffmpeg)
endif()
# build sketch as executable
add_executable (adpcm-test adpcm.cpp ../../main.cpp)
add_executable (adpcm-test adpcm.cpp)
# set preprocessor defines
target_compile_definitions(adpcm-test PUBLIC -DARDUINO -DEXIT_ON_STOP -DUSE_PORTAUDIO -DIS_DESKTOP)

View File

@ -36,7 +36,7 @@ endif()
# build sketch as executable
set_source_files_properties(hls-cat.ino PROPERTIES LANGUAGE CXX)
add_executable (hls-cat hls-cat.cpp ../../main.cpp )
add_executable (hls-cat hls-cat.cpp)
# set preprocessor defines
target_compile_definitions(hls-cat PUBLIC -DARDUINO -DIS_DESKTOP -DEXIT_ON_STOP -DHELIX_PRINT)

View File

@ -39,7 +39,7 @@ file(DOWNLOAD https://raw.githubusercontent.com/mackron/miniaudio/master/miniaud
# build sketch as executable
set_source_files_properties(hls.ino PROPERTIES LANGUAGE CXX)
add_executable (hls hls.cpp ../../main.cpp )
add_executable (hls hls.cpp )
# set preprocessor defines
target_compile_definitions(hls PUBLIC -DARDUINO -DIS_DESKTOP -DEXIT_ON_STOP -DHELIX_PRINT)

View File

@ -39,7 +39,7 @@ file(DOWNLOAD https://raw.githubusercontent.com/mackron/miniaudio/master/miniaud
# build sketch as executable
set_source_files_properties(hls.ino PROPERTIES LANGUAGE CXX)
add_executable (hls hls.cpp ../../main.cpp )
add_executable (hls hls.cpp)
# set preprocessor defines
target_compile_definitions(hls PUBLIC -DARDUINO -DIS_DESKTOP -DEXIT_ON_STOP -DHELIX_PRINT)

View File

@ -25,7 +25,7 @@ if(NOT helix_POPULATED)
endif()
# build sketch as executable
add_executable (mp3-helix mp3-helix.cpp ../../main.cpp)
add_executable (mp3-helix mp3-helix.cpp)
# set preprocessor defines
target_compile_definitions(mp3-helix PUBLIC -DARDUINO -DEXIT_ON_STOP -DUSE_PORTAUDIO -DIS_DESKTOP)

View File

@ -25,7 +25,7 @@ if(NOT arduino_liblame_POPULATED)
endif()
# build sketch as executable
add_executable (mp3-lame mp3-lame.cpp ../../main.cpp)
add_executable (mp3-lame mp3-lame.cpp)
# set preprocessor defines
target_compile_definitions(mp3-lame PUBLIC -DARDUINO -DEXIT_ON_STOP -DUSE_PORTAUDIO -DIS_DESKTOP)

View File

@ -22,7 +22,7 @@ if(NOT arduino_libmad_POPULATED)
endif()
# build sketch as executabl
add_executable (mp3-mad mp3-mad.cpp ../../main.cpp)
add_executable (mp3-mad mp3-mad.cpp)
# set preprocessor defines
target_compile_definitions(mp3-mad PUBLIC -DARDUINO -DEXIT_ON_STOP -DUSE_PORTAUDIO -DIS_DESKTOP )

View File

@ -15,7 +15,7 @@ if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
endif()
# build sketch as executable
add_executable (mp3-metadata mp3-metadata.cpp ../../main.cpp)
add_executable (mp3-metadata mp3-metadata.cpp)
# set preprocessor defines
target_compile_definitions(mp3-metadata PUBLIC -DEXIT_ON_STOP -DIS_DESKTOP)

View File

@ -21,7 +21,7 @@ if(NOT arduino_libopus_POPULATED)
endif()
# build sketch as executable
add_executable (opus opus.cpp ../../main.cpp)
add_executable (opus opus.cpp)
# set preprocessor defines
target_compile_definitions(opus PUBLIC -DARDUINO -DEXIT_ON_STOP -DUSE_PORTAUDIO -DIS_DESKTOP )

View File

@ -21,7 +21,7 @@ if(NOT arduino_libopus_POPULATED)
endif()
# build sketch as executable
add_executable (opusogg opusogg.cpp ../../main.cpp)
add_executable (opusogg opusogg.cpp)
# set preprocessor defines
target_compile_definitions(opusogg PUBLIC -DARDUINO -DEXIT_ON_STOP -DUSE_PORTAUDIO -DIS_DESKTOP )

View File

@ -25,7 +25,7 @@ if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
endif()
# build sketch as executable
add_executable (wav-test wav.cpp ../../main.cpp)
add_executable (wav-test wav.cpp)
# set preprocessor defines
target_compile_definitions(wav-test PUBLIC -DARDUINO -DEXIT_ON_STOP -DUSE_PORTAUDIO -DIS_DESKTOP)

View File

@ -16,7 +16,7 @@ endif()
# build sketch as executable
add_executable (effects effects.cpp ../main.cpp)
add_executable (effects effects.cpp)
# set preprocessor defines
target_compile_definitions(effects PUBLIC -DARDUINO -DEXIT_ON_STOP -DIS_DESKTOP)

View File

@ -15,7 +15,7 @@ if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
endif()
# build sketch as executable
add_executable (filter-wav filter-wav.cpp ../main.cpp )
add_executable (filter-wav filter-wav.cpp)
target_include_directories(filter-wav PRIVATE "${arduino_emulator_SOURCE_DIR}/ArduinoCore-Linux/libraries/SdFat" )
# set preprocessor defines

View File

@ -15,7 +15,7 @@ if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
endif()
# build sketch as executable
add_executable (filter filter.cpp ../main.cpp)
add_executable (filter filter.cpp)
# set preprocessor defines
target_compile_definitions(filter PUBLIC -DEXIT_ON_STOP -DIS_DESKTOP)

View File

@ -14,7 +14,7 @@ if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
endif()
# build sketch as executable
add_executable (generator generator.cpp ../main.cpp)
add_executable (generator generator.cpp)
# set preprocessor defines
target_compile_definitions(generator PUBLIC -DEXIT_ON_STOP -DIS_DESKTOP)

View File

@ -1,9 +0,0 @@
// #ifdef IS_DESKTOP
// #include "Arduino.h"
// int main(){
// setup();
// while(true) loop();
// }
// #endif

View File

@ -15,7 +15,7 @@ if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
endif()
# build sketch as executable
add_executable (player-wav player-wav.cpp ../main.cpp )
add_executable (player-wav player-wav.cpp)
target_include_directories(player-wav PRIVATE "${arduino_emulator_SOURCE_DIR}/ArduinoCore-Linux/libraries/SdFat" )
# set preprocessor defines

View File

@ -15,7 +15,7 @@ if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
endif()
# build sketch as executable
add_executable (resample resample.cpp ../main.cpp)
add_executable (resample resample.cpp)
# set preprocessor defines
target_compile_definitions(resample PUBLIC -DEXIT_ON_STOP -DIS_DESKTOP)

View File

@ -17,7 +17,7 @@ if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
endif()
# build sketch as executable
add_executable (url-test url-test.cpp ../main.cpp)
add_executable (url-test url-test.cpp)
# set preprocessor defines
target_compile_definitions(url-test PUBLIC -DARDUINO -DEXIT_ON_STOP -DIS_DESKTOP)