specify target language in macros that add unit tests

This commit is contained in:
Sears Russell 2008-03-02 23:34:15 +00:00
parent 034343737b
commit bb1ef5e760

View file

@ -19,13 +19,13 @@ endif(!CHECK_LIBRARY)
CHECK_INCLUDE_FILES(confuse.h HAVE_LIBCONFUSE) CHECK_INCLUDE_FILES(confuse.h HAVE_LIBCONFUSE)
MACRO(CREATE_CHECK NAME) MACRO(CREATE_CHECK NAME)
ADD_EXECUTABLE(${NAME} ${NAME}) ADD_EXECUTABLE(${NAME} ${NAME}.c)
TARGET_LINK_LIBRARIES(${NAME} -lcheck ${COMMON_LIBRARIES}) TARGET_LINK_LIBRARIES(${NAME} -lcheck ${COMMON_LIBRARIES})
ADD_TEST(${NAME} ${NAME}) ADD_TEST(${NAME} ${NAME})
ENDMACRO(CREATE_CHECK) ENDMACRO(CREATE_CHECK)
MACRO(CREATE_CHECK_OPT NAME OPT) MACRO(CREATE_CHECK_OPT NAME OPT)
ADD_EXECUTABLE(${NAME} ${NAME}) ADD_EXECUTABLE(${NAME} ${NAME}.c)
TARGET_LINK_LIBRARIES(${NAME} -lcheck ${COMMON_LIBRARIES}) TARGET_LINK_LIBRARIES(${NAME} -lcheck ${COMMON_LIBRARIES})
ADD_TEST(${NAME} ${NAME} ${OPT}) ADD_TEST(${NAME} ${NAME} ${OPT})
ENDMACRO(CREATE_CHECK_OPT) ENDMACRO(CREATE_CHECK_OPT)