Location: LEMON/LEMON-main/test/CMakeLists.txt - annotation

Load file history
gravatar
ladanyi@tmit.bme.hu
Improved LEMON_FUNCTION_NAME macro. It should work fine with GCC and the MS C++ compilers. Otherwise it reverts to using the __func__ variable which is C99, but I couldn't find a better alternative.
include_directories (${LEMON_SOURCE_DIR})

link_directories (${LEMON_BINARY_DIR}/lemon)

set (TESTS
  bfs_test
  counter_test
  dfs_test
  digraph_test
  dim_test
  error_test
  graph_test
  kruskal_test
  maps_test
  random_test
  path_test
  time_measure_test
  unionfind_test)

foreach (TEST_NAME ${TESTS})
  add_executable (${TEST_NAME} ${TEST_NAME}.cc)
  target_link_libraries (${TEST_NAME} lemon)
  add_test(${TEST_NAME} ${TEST_NAME})
endforeach (TEST_NAME)