specify target language in macros that add unit tests
This commit is contained in:
parent
034343737b
commit
bb1ef5e760
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue