23 lines
484 B
CMake
23 lines
484 B
CMake
add_executable(Parsodus-test
|
|
lr0_shift-red.cpp
|
|
lr1_only.cpp
|
|
)
|
|
target_link_libraries(Parsodus-test
|
|
# Parsodus-backends
|
|
Parsodus-tables
|
|
Parsodus-util
|
|
pds
|
|
mstch::mstch
|
|
${GTEST_BOTH_LIBRARIES}
|
|
)
|
|
include(FindGTest)
|
|
GTEST_ADD_TESTS(Parsodus-test "" AUTO)
|
|
|
|
if (CMAKE_BUILD_TYPE MATCHES Debug)
|
|
SETUP_TARGET_FOR_COVERAGE(coverage Parsodus-test coverage)
|
|
if (TARGET ext-lcov)
|
|
add_dependencies(coverage ext-lcov)
|
|
endif ()
|
|
endif()
|
|
|