CMake: build all tests
This commit is contained in:
parent
dfa969b3d9
commit
ee2c707495
2 changed files with 61 additions and 9 deletions
|
|
@ -477,6 +477,16 @@ ENDIF()
|
|||
# Prepared for inclusion of test files
|
||||
OPTION(PA_BUILD_TESTS "Include test projects" OFF)
|
||||
IF(PA_BUILD_TESTS)
|
||||
MACRO(ADD_TEST appl_name)
|
||||
ADD_EXECUTABLE(${appl_name} "${appl_name}.c")
|
||||
TARGET_LINK_LIBRARIES(${appl_name} portaudio_static)
|
||||
TARGET_INCLUDE_DIRECTORIES(${appl_name} PRIVATE "${CMAKE_SOURCE_DIR}/src/common")
|
||||
SET_TARGET_PROPERTIES(${appl_name}
|
||||
PROPERTIES
|
||||
FOLDER "Test"
|
||||
)
|
||||
ENDMACRO(ADD_TEST)
|
||||
|
||||
SUBDIRS(test)
|
||||
ENDIF()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue