Skip to content

@leehambley /CMakeLists.txt secret
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
# =========================================================================== #
# Following the Ruby *_test naming scheme.
# =========================================================================== #
file(GLOB_RECURSE test_sources "${PROJECT_SOURCE_DIR}/*_test.c")
# =========================================================================== #
# CMockery mainline is good enough
# =========================================================================== #
include(${CMAKE_MODULE_PATH}/FindCMockery.cmake)
find_package(CMockery REQUIRED)
# ===========================================================================
# These are our tests, they're an executable with their own main()
# ===========================================================================
add_executable(libwatcheditTest ${test_sources})
# ===========================================================================
# Linking the tests
# ===========================================================================
target_link_libraries(libwatcheditTest watchedit)
target_link_libraries(libwatcheditTest cmockery)
# ===========================================================================
# Headers are important
# ===========================================================================
include_directories(${CMOCKERY_INCLUDE_DIRS})
# ===========================================================================
# Just one test right now, this might have to change in the future
# ===========================================================================
add_test(libwatchedit libwatcheditTest)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.