aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorCharlie Blake2018-01-30 19:51:38 +0000
committerGitHub2018-01-30 19:51:38 +0000
commit2fc005bdbb4707810ad0ae36a6863e70f0ff91b5 (patch)
tree59ca3063ffe6a876d27c96ea95d6a3683273675a /CMakeLists.txt
parentMerge pull request #31 from thecharlesblake/profiling-fix (diff)
parentAdd ORDER_ON_CACHE to benchmark script (diff)
downloadmetasol-2fc005bdbb4707810ad0ae36a6863e70f0ff91b5.tar.gz
metasol-2fc005bdbb4707810ad0ae36a6863e70f0ff91b5.zip

Merge pull request #32 from thecharlesblake/piles-always-sorted

Piles always sorted

Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt9
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