diff options
author | Piotr Dziwiński <piotrdz@gmail.com> | 2013-11-19 10:09:10 -0800 |
---|---|---|
committer | Piotr Dziwiński <piotrdz@gmail.com> | 2013-11-19 10:09:10 -0800 |
commit | b3b80b5fbb0f0b4e1633c1a1ca1d2804b7a0ec59 (patch) | |
tree | e0e3e3f929a5f39a297f94c4e1b44fda3635dd3b /test/unit/common/CMakeLists.txt | |
parent | 5514c950b90788a9f030f585777f5779af76f2aa (diff) | |
parent | 86c0eb193dc84d39056e9a581f0717a058614db1 (diff) | |
download | colobot-b3b80b5fbb0f0b4e1633c1a1ca1d2804b7a0ec59.tar.gz colobot-b3b80b5fbb0f0b4e1633c1a1ca1d2804b7a0ec59.tar.bz2 colobot-b3b80b5fbb0f0b4e1633c1a1ca1d2804b7a0ec59.zip |
Merge pull request #251 from OdyX/dev-fix-tests
Fix build tests as well as other useful tests
Diffstat (limited to 'test/unit/common/CMakeLists.txt')
-rw-r--r-- | test/unit/common/CMakeLists.txt | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/test/unit/common/CMakeLists.txt b/test/unit/common/CMakeLists.txt index aebf17a..cf37961 100644 --- a/test/unit/common/CMakeLists.txt +++ b/test/unit/common/CMakeLists.txt @@ -7,10 +7,15 @@ ${GTEST_INCLUDE_DIR} add_executable(image_test ${SRC_DIR}/common/image.cpp image_test.cpp) target_link_libraries(image_test ${SDL_LIBRARY} ${SDLIMAGE_LIBRARY} ${PNG_LIBRARIES}) +add_test(NAME image_test + COMMAND ${CMAKE_BINARY_DIR}/image_test ${CMAKE_SOURCE_DIR}/test/envs/opengl/tex1.png ${CMAKE_BINARY_DIR}/tex1_test.png) file(COPY colobot.ini DESTINATION ${CMAKE_CURRENT_BINARY_DIR}) -# add_executable(profile_test ${SRC_DIR}/common/profile.cpp ${SRC_DIR}/common/logger.cpp profile_test.cpp) -# target_link_libraries(profile_test gtest ${Boost_LIBRARIES}) +add_executable(profile_test ${SRC_DIR}/common/profile.cpp ${SRC_DIR}/common/logger.cpp profile_test.cpp) +set_target_properties(profile_test PROPERTIES COMPILE_DEFINITIONS "DEV_BUILD=1") +target_link_libraries(profile_test gtest ${Boost_LIBRARIES}) -# add_test(profile_test ./profile_test) +add_test(NAME profile_test + COMMAND ${CMAKE_BINARY_DIR}/profile_test + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}) |