mirror of
https://github.com/lwvmobile/dsd-fme.git
synced 2026-11-13 01:07:24 -05:00
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.
22 lines
427 B
CMake
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)
|