cmake: use uppercase for defined macros

Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Lubomir I. Ivanov 2015-04-18 15:22:13 +03:00 committed by Dirk Hohndel
parent 8153c1560b
commit 8fec4ab5e7

View file

@ -359,7 +359,7 @@ endif()
# QTest based tests # QTest based tests
macro(test NAME FILE) macro(TEST NAME FILE)
add_executable(${NAME} tests/${FILE} ${SUBSURFACE_RESOURCES}) add_executable(${NAME} tests/${FILE} ${SUBSURFACE_RESOURCES})
target_link_libraries(${NAME} subsurface_corelib ${QT_TEST_LIBRARIES} ${SUBSURFACE_LINK_LIBRARIES}) target_link_libraries(${NAME} subsurface_corelib ${QT_TEST_LIBRARIES} ${SUBSURFACE_LINK_LIBRARIES})
add_test(NAME ${NAME} COMMAND ${NAME}) add_test(NAME ${NAME} COMMAND ${NAME})
@ -369,10 +369,10 @@ enable_testing()
add_definitions(-DSUBSURFACE_SOURCE="${CMAKE_SOURCE_DIR}") add_definitions(-DSUBSURFACE_SOURCE="${CMAKE_SOURCE_DIR}")
add_definitions(-g) add_definitions(-g)
if(NOT NO_TESTS) if(NOT NO_TESTS)
test(TestUnitConversion testunitconversion.cpp) TEST(TestUnitConversion testunitconversion.cpp)
test(TestProfile testprofile.cpp) TEST(TestProfile testprofile.cpp)
test(TestGpsCoords testgpscoords.cpp) TEST(TestGpsCoords testgpscoords.cpp)
test(TestParse testparse.cpp) TEST(TestParse testparse.cpp)
endif() endif()
if(NOT NO_DOCS) if(NOT NO_DOCS)