2015-07-23 21:10:03 +00:00
|
|
|
project(unit CXX)
|
|
|
|
|
|
|
|
add_executable(${PROJECT_NAME}
|
|
|
|
${GTEST_MAIN_CPP}
|
|
|
|
test_conversions.cpp
|
2015-07-25 17:41:16 +00:00
|
|
|
test_ops.cpp
|
2015-07-25 18:55:52 +00:00
|
|
|
example.cpp
|
2015-07-23 21:10:03 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(${PROJECT_NAME}
|
|
|
|
gtest
|
|
|
|
)
|
2016-09-19 01:19:55 +00:00
|
|
|
|
|
|
|
add_test(
|
|
|
|
NAME UnitTest
|
|
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
COMMAND ${PROJECT_NAME}
|
|
|
|
)
|