diff options
author | Didier Raboud <odyx@debian.org> | 2013-11-18 16:13:19 +0100 |
---|---|---|
committer | Didier Raboud <odyx@debian.org> | 2013-11-18 16:13:19 +0100 |
commit | ca82353e81988b4c4105ef2ed8d61206a70d6595 (patch) | |
tree | db5c1de71b47be90b8197eaaebb835fb69aaa565 /test/unit/common | |
parent | 6e31af3923601663b351433892d6ad314fdc802a (diff) | |
download | colobot-ca82353e81988b4c4105ef2ed8d61206a70d6595.tar.gz colobot-ca82353e81988b4c4105ef2ed8d61206a70d6595.tar.bz2 colobot-ca82353e81988b4c4105ef2ed8d61206a70d6595.zip |
Re-enable profile_test test
Diffstat (limited to 'test/unit/common')
-rw-r--r-- | test/unit/common/CMakeLists.txt | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/test/unit/common/CMakeLists.txt b/test/unit/common/CMakeLists.txt index aebf17a..7d1ae9d 100644 --- a/test/unit/common/CMakeLists.txt +++ b/test/unit/common/CMakeLists.txt @@ -10,7 +10,10 @@ target_link_libraries(image_test ${SDL_LIBRARY} ${SDLIMAGE_LIBRARY} ${PNG_LIBRAR 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}) |