From bb1ef5e7602d8677e67cc1ef149d02d817b7e3af Mon Sep 17 00:00:00 2001 From: Sears Russell Date: Sun, 2 Mar 2008 23:34:15 +0000 Subject: [PATCH] specify target language in macros that add unit tests --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 498b795..4aec8b5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -19,13 +19,13 @@ endif(!CHECK_LIBRARY) CHECK_INCLUDE_FILES(confuse.h HAVE_LIBCONFUSE) MACRO(CREATE_CHECK NAME) - ADD_EXECUTABLE(${NAME} ${NAME}) + ADD_EXECUTABLE(${NAME} ${NAME}.c) TARGET_LINK_LIBRARIES(${NAME} -lcheck ${COMMON_LIBRARIES}) ADD_TEST(${NAME} ${NAME}) ENDMACRO(CREATE_CHECK) MACRO(CREATE_CHECK_OPT NAME OPT) - ADD_EXECUTABLE(${NAME} ${NAME}) + ADD_EXECUTABLE(${NAME} ${NAME}.c) TARGET_LINK_LIBRARIES(${NAME} -lcheck ${COMMON_LIBRARIES}) ADD_TEST(${NAME} ${NAME} ${OPT}) ENDMACRO(CREATE_CHECK_OPT)