The idea of these tests is to check whether the modules will work with different kinds of inputs. The modules should be able to initialize or return an error indication. But in all cases they should be able to handle default arguments all different inputs
21 lines
1003 B
CMake
21 lines
1003 B
CMake
#
|
|
# CMakeLists for playuver lib tests component
|
|
#
|
|
|
|
INCLUDE_DIRECTORIES(${GTEST_INCLUDE_DIRS})
|
|
|
|
ADD_DEFINITIONS(-DCALYP_TEST_DATA_DIR=\"${CALYP_TEST_DATA_DIR}\")
|
|
|
|
FOREACH(module ${MODULES_LIST_NAME})
|
|
ADD_EXECUTABLE(TestModuleCreate_${module} TestModuleCreate.cpp)
|
|
TARGET_COMPILE_DEFINITIONS(TestModuleCreate_${module} PUBLIC -DCALYP_TEST_MODULE_NAME=\"${module}\")
|
|
TARGET_LINK_LIBRARIES(TestModuleCreate_${module} ${PROJECT_LIBRARY} CalypModules gtest gtest_main)
|
|
ADD_TEST(TestModuleCreate_${module} TestModuleCreate_${module})
|
|
|
|
ADD_EXECUTABLE(TestModuleProcessNumberOfFrames_${module} TestModuleProcessNumberOfFrames.cpp)
|
|
TARGET_COMPILE_DEFINITIONS(TestModuleProcessNumberOfFrames_${module} PUBLIC -DCALYP_TEST_MODULE_NAME=\"${module}\")
|
|
TARGET_LINK_LIBRARIES(TestModuleProcessNumberOfFrames_${module} ${PROJECT_LIBRARY} CalypModules gtest gtest_main)
|
|
ADD_TEST(TestModuleProcessNumberOfFrames_${module} TestModuleProcessNumberOfFrames_${module})
|
|
|
|
ENDFOREACH(module ${MODULES_LIST_NAME})
|