Files
dsd-fme/test/CMakeLists.txt
EdFuentetaja 01a2b6959a Added error correction to the metadata of LDU1 and LDU2.
Refactored implementation of p25p1_ldu1.c and p25p1_ldu2.c. There are less duplicities now and hopefully is easier to read and maintain.
Added a unit test for the Hamming algorithm.
2014-03-31 23:37:08 +08:00

22 lines
427 B
CMake

project(dsdtest)
add_subdirectory(gtest)
add_subdirectory(gmock)
FILE(GLOB SRCS *.cpp ${dsdtest_SOURCE_DIR}/../Hamming.cpp)
include_directories(
${PROJECT_SOURCE_DIR}/gtest/include
${PROJECT_SOURCE_DIR}/gmock/include
${dsdtest_SOURCE_DIR}
${dsdtest_SOURCE_DIR}/..
)
add_custom_target(test
DEPENDS dsdtest
COMMAND dsdtest
)
ADD_EXECUTABLE(dsdtest ${SRCS})
TARGET_LINK_LIBRARIES(dsdtest gmock gtest)