[Positioner] tests: fix CMake dependencies

This commit is contained in:
Matteo Cypriani 2013-06-21 16:40:37 -04:00
parent e2074cdb9b
commit 13f8847f65
1 changed files with 10 additions and 1 deletions

View File

@ -167,8 +167,17 @@ set(TESTS_SRC_FILES
)
# Create the test runner's source
set(TEST_POSITIONER_FILE_DEPS
${TESTS_SRC_FILES}
${TESTS_DIR}/valuetraits.hh
${TESTS_DIR}/testutil.hh)
add_custom_command(OUTPUT test_positioner.cc
COMMAND cxxtestgen --error-printer --include=${TESTS_DIR}/valuetraits.hh --include=${TESTS_DIR}/testutil.hh -o test_positioner.cc ${TESTS_SRC_FILES})
COMMAND cxxtestgen --error-printer
--include=${TESTS_DIR}/valuetraits.hh
--include=${TESTS_DIR}/testutil.hh -o test_positioner.cc
${TESTS_SRC_FILES}
DEPENDS ${TEST_POSITIONER_FILE_DEPS})
# Compile the test runner
include_directories(${CMAKE_CURRENT_SOURCE_DIR})