aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthecharlesblake2018-02-24 11:09:47 +0000
committerthecharlesblake2018-02-24 11:09:47 +0000
commitfddc559c5ae441906c2edeaab9ec8ea1a06e62e0 (patch)
tree452254713cbc919398a87cbff3a3da7e22955a03
parentFix double call to gen legal moves in solver (diff)
downloadmetasol-fddc559c5ae441906c2edeaab9ec8ea1a06e62e0.tar.gz
metasol-fddc559c5ae441906c2edeaab9ec8ea1a06e62e0.zip

Add NO_CARD_JUST_MOVED optimisation flag to CMAKE

-rw-r--r--CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ff12767..0e2a21b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -153,6 +153,11 @@ add_executable(solvitaire-no-auto-foundations ${main} ${sources})
target_link_libraries(solvitaire-no-auto-foundations LINK_PUBLIC ${Boost_LIBRARIES} -lprofiler)
set_target_properties(solvitaire-no-auto-foundations PROPERTIES COMPILE_FLAGS -DNO_AUTO_FOUNDATIONS)
+# add a separete executable for the 'no card just moved' version of the solver
+add_executable(solvitaire-no-card-just-moved ${main} ${sources})
+target_link_libraries(solvitaire-no-card-just-moved LINK_PUBLIC ${Boost_LIBRARIES} -lprofiler)
+set_target_properties(solvitaire-no-card-just-moved PROPERTIES COMPILE_FLAGS -DNO_CARD_JUST_MOVED)
+
###############################################################################
## testing ####################################################################