Commit 5cb0a22a authored by Pascal Palenda's avatar Pascal Palenda
Browse files

Apply the CMake formatting

parent a3b22261
......@@ -47,7 +47,8 @@ add_subdirectory ("include")
add_subdirectory ("src")
target_link_libraries (
${PROJECT_NAME} PRIVATE SndFile::sndfile SampleRate::samplerate Spline::spline
${PROJECT_NAME}
PRIVATE SndFile::sndfile SampleRate::samplerate Spline::spline
PUBLIC vista::vista_base vista::vista_tools
)
......
cmake_minimum_required (VERSION 3.14 FATAL_ERROR)
project( ITABaseTests )
project (ITABaseTests)
###################
# ######################################################################################################################
add_executable( ITAStringUtilsTest ITAStringUtilsTest.cpp )
target_link_libraries( ITAStringUtilsTest PUBLIC ITABase::ITABase )
add_executable (ITAStringUtilsTest ITAStringUtilsTest.cpp)
target_link_libraries (ITAStringUtilsTest PUBLIC ITABase::ITABase)
set_property( TARGET ITAStringUtilsTest PROPERTY FOLDER "Tests/ITABase" )
set_property (TARGET ITAStringUtilsTest PROPERTY FOLDER "Tests/ITABase")
install(TARGETS ITAStringUtilsTest RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
install (TARGETS ITAStringUtilsTest RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
###################
# ######################################################################################################################
add_executable( ConfigUtilsTest ConfigUtilsTest.cpp )
target_link_libraries( ConfigUtilsTest PUBLIC ITABase::ITABase )
add_executable (ConfigUtilsTest ConfigUtilsTest.cpp)
target_link_libraries (ConfigUtilsTest PUBLIC ITABase::ITABase)
set_property( TARGET ConfigUtilsTest PROPERTY FOLDER "Tests/ITABase" )
set_property (TARGET ConfigUtilsTest PROPERTY FOLDER "Tests/ITABase")
install(TARGETS ConfigUtilsTest RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
install (TARGETS ConfigUtilsTest RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
configure_file(${CMAKE_CURRENT_LIST_DIR}/ConfigUtilsTest.ini ${CMAKE_BINARY_DIR}/bin/ConfigUtilsTest.ini COPYONLY)
install(FILES ${CMAKE_CURRENT_LIST_DIR}/ConfigUtilsTest.ini TYPE BIN)
configure_file (${CMAKE_CURRENT_LIST_DIR}/ConfigUtilsTest.ini ${CMAKE_BINARY_DIR}/bin/ConfigUtilsTest.ini COPYONLY)
install (FILES ${CMAKE_CURRENT_LIST_DIR}/ConfigUtilsTest.ini TYPE BIN)
####################
# ######################################################################################################################
add_executable( AttenuationISO9613Test AttenuationISO9613Test.cpp )
target_link_libraries( AttenuationISO9613Test PUBLIC ITABase::ITABase )
add_executable (AttenuationISO9613Test AttenuationISO9613Test.cpp)
target_link_libraries (AttenuationISO9613Test PUBLIC ITABase::ITABase)
set_property( TARGET AttenuationISO9613Test PROPERTY FOLDER "Tests/ITABase" )
set_property (TARGET AttenuationISO9613Test PROPERTY FOLDER "Tests/ITABase")
install(TARGETS AttenuationISO9613Test RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
install (TARGETS AttenuationISO9613Test RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
####################
# ######################################################################################################################
add_executable( ITABaseSampleBufferTest ITABaseSampleBufferTest.cpp )
target_link_libraries( ITABaseSampleBufferTest PUBLIC ITABase::ITABase )
add_executable (ITABaseSampleBufferTest ITABaseSampleBufferTest.cpp)
target_link_libraries (ITABaseSampleBufferTest PUBLIC ITABase::ITABase)
set_property( TARGET ITABaseSampleBufferTest PROPERTY FOLDER "Tests/ITABase" )
set_property (TARGET ITABaseSampleBufferTest PROPERTY FOLDER "Tests/ITABase")
install(TARGETS ITABaseSampleBufferTest RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
install (TARGETS ITABaseSampleBufferTest RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
####################
# ######################################################################################################################
if (ITA_BASE_WITH_SNDFILE)
if( ITA_BASE_WITH_SNDFILE )
add_executable (ITABaseSampleFrameTest ITABaseSampleFrameTest.cpp)
target_link_libraries (ITABaseSampleFrameTest PUBLIC ITABase::ITABase)
add_executable( ITABaseSampleFrameTest ITABaseSampleFrameTest.cpp )
target_link_libraries( ITABaseSampleFrameTest PUBLIC ITABase::ITABase )
set_property( TARGET ITABaseSampleFrameTest PROPERTY FOLDER "Tests/ITABase" )
set_property (TARGET ITABaseSampleFrameTest PROPERTY FOLDER "Tests/ITABase")
install(TARGETS ITABaseSampleFrameTest RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
endif( )
install (TARGETS ITABaseSampleFrameTest RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
####################
endif ()
if( ITA_BASE_WITH_SAMPLERATE )
# ######################################################################################################################
add_executable( ITABaseAudioSampleTest ITABaseAudioSampleTest.cpp )
target_link_libraries( ITABaseAudioSampleTest PUBLIC ITABase::ITABase )
set_property( TARGET ITABaseAudioSampleTest PROPERTY FOLDER "Tests/ITABase" )
if (ITA_BASE_WITH_SAMPLERATE)
install(TARGETS ITABaseAudioSampleTest RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
endif( )
add_executable (ITABaseAudioSampleTest ITABaseAudioSampleTest.cpp)
target_link_libraries (ITABaseAudioSampleTest PUBLIC ITABase::ITABase)
####################
set_property (TARGET ITABaseAudioSampleTest PROPERTY FOLDER "Tests/ITABase")
add_executable( ITABaseSpectrumTests ITABaseSpectrumTests.cpp )
target_link_libraries( ITABaseSpectrumTests PUBLIC ITABase::ITABase )
install (TARGETS ITABaseAudioSampleTest RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
set_property( TARGET ITABaseSpectrumTests PROPERTY FOLDER "Tests/ITABase" )
endif ()
install(TARGETS ITABaseSpectrumTests RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
# ######################################################################################################################
####################
add_executable (ITABaseSpectrumTests ITABaseSpectrumTests.cpp)
target_link_libraries (ITABaseSpectrumTests PUBLIC ITABase::ITABase)
add_executable( SplineTest SplineTest.cpp )
target_link_libraries( SplineTest PUBLIC ITABase::ITABase )
set_property (TARGET ITABaseSpectrumTests PROPERTY FOLDER "Tests/ITABase")
set_property( TARGET SplineTest PROPERTY FOLDER "Tests/ITABase" )
install (TARGETS ITABaseSpectrumTests RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
install(TARGETS SplineTest RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
# ######################################################################################################################
add_subdirectory( VistaTests )
add_executable (SplineTest SplineTest.cpp)
target_link_libraries (SplineTest PUBLIC ITABase::ITABase)
set_property (TARGET SplineTest PROPERTY FOLDER "Tests/ITABase")
install (TARGETS SplineTest RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
add_subdirectory (VistaTests)
cmake_minimum_required( VERSION 3.14 FATAL_ERROR )
cmake_minimum_required (VERSION 3.14 FATAL_ERROR)
project( VistaTests )
project (VistaTests)
add_executable( VistaTickerTest VistaTickerTest.cpp )
target_link_libraries( VistaTickerTest PUBLIC vista::vista_inter_proc_comm )
add_executable (VistaTickerTest VistaTickerTest.cpp)
target_link_libraries (VistaTickerTest PUBLIC vista::vista_inter_proc_comm)
set_property( TARGET VistaTickerTest PROPERTY FOLDER "Tests/Vista" )
set_property (TARGET VistaTickerTest PROPERTY FOLDER "Tests/Vista")
install(TARGETS VistaTickerTest RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
install (TARGETS VistaTickerTest RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
####################
# ######################################################################################################################
add_executable( VistaNetIPTest VistaNetIPTest.cpp )
target_link_libraries( VistaNetIPTest PUBLIC vista::vista_inter_proc_comm )
add_executable (VistaNetIPTest VistaNetIPTest.cpp)
target_link_libraries (VistaNetIPTest PUBLIC vista::vista_inter_proc_comm)
set_property( TARGET VistaNetIPTest PROPERTY FOLDER "Tests/Vista" )
set_property (TARGET VistaNetIPTest PROPERTY FOLDER "Tests/Vista")
install(TARGETS VistaNetIPTest RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
install (TARGETS VistaNetIPTest RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
####################
# ######################################################################################################################
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment