Browse Source

- added test/ dir with a simple testcase

master
parent
commit
b53ab7ca8d
2 changed files with 17 additions and 0 deletions
  1. +11
    -0
      test/CMakeLists.txt
  2. +6
    -0
      test/test.cpp

+ 11
- 0
test/CMakeLists.txt View File

@ -0,0 +1,11 @@
find_package(Boost COMPONENTS unit_test_framework REQUIRED)
message(status "** Boost Include: ${Boost_INCLUDE_DIR}")
message(status "** Boost Libraries: ${Boost_LIBRARY_DIRS}")
message(status "** Boost Libraries: ${Boost_LIBRARIES}")
INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIR})
LINK_DIRECTORIES(${Boost_LIBRARY_DIRS})
add_definitions(-DBOOST_TEST_DYN_LINK)
add_executable(Mytest test.cpp)
target_link_libraries(Mytest ${Boost_UNIT_TEST_FRAMEWORK_LIBRARY})

+ 6
- 0
test/test.cpp View File

@ -0,0 +1,6 @@
#define BOOST_TEST_MODULE Mytest
#include <boost/test/unit_test.hpp>
namespace utf = boost::unit_test;
BOOST_AUTO_TEST_CASE(test1){BOOST_TEST(true);}

Loading…
Cancel
Save