From 84effc390649937ab2f79bbfdf56a00dba38569e Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Mon, 18 Mar 2013 01:02:55 -0700 Subject: gras: tweaks to unit tests --- tests/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 9393afe..516dd79 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -20,6 +20,7 @@ set(test_sources include_directories(${GRAS_INCLUDE_DIRS}) include_directories(${Boost_INCLUDE_DIRS}) link_directories(${Boost_LIBRARY_DIRS}) +list(APPEND GR_TEST_LIBRARY_DIRS ${Boost_LIBRARY_DIRS}) #turn each test cpp file into an executable with an int main() function add_definitions(-DBOOST_TEST_DYN_LINK -DBOOST_TEST_MAIN) @@ -29,7 +30,6 @@ foreach(test_source ${test_sources}) get_filename_component(test_name ${test_source} NAME_WE) add_executable(${test_name} ${test_source}) target_link_libraries(${test_name} ${Boost_LIBRARIES} ${GRAS_LIBRARIES}) - set(GR_TEST_LIBRARY_DIRS ${Boost_LIBRARY_DIRS}) GR_ADD_TEST(${test_name}_cpp ${test_name}) endforeach(test_source) -- cgit