diff options
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index d8bae75..3477339 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -50,7 +50,7 @@ set(sources_test src/test/somerset_test.cpp src/test/alpha_star_test.cpp src/test/spider_test.cpp - src/test/gloabl_cache_test.cpp) + src/test/global_cache_test.cpp) ############################################################################### ## Rapid JSON setup ########################################################### @@ -137,6 +137,11 @@ add_executable(solvitaire-simple-hash ${main} ${sources}) target_link_libraries(solvitaire-simple-hash LINK_PUBLIC ${Boost_LIBRARIES} -lprofiler) set_target_properties(solvitaire-simple-hash PROPERTIES COMPILE_FLAGS -DSIMPLE_HASH) +# add a separete executable for the 'order on cache' version of the solver +add_executable(solvitaire-order-on-cache ${main} ${sources}) +target_link_libraries(solvitaire-order-on-cache LINK_PUBLIC ${Boost_LIBRARIES} -lprofiler) +set_target_properties(solvitaire-order-on-cache PROPERTIES COMPILE_FLAGS -DORDER_ON_CACHE) + ############################################################################### ## testing #################################################################### @@ -148,7 +153,7 @@ add_executable(unit_tests ${sources_test} ${sources}) # therefore we can inherit all compiler options and library dependencies set_target_properties(solvitaire PROPERTIES ENABLE_EXPORTS on) -target_link_libraries(unit_tests gtest_main ${Boost_LIBRARIES}) +target_link_libraries(unit_tests gtest_main ${Boost_LIBRARIES} -lprofiler) ENABLE_TESTING() ADD_TEST(NAME unit_tests |
