-add_executable(centralized centralized_mutex.c)
-add_executable(bugged1 bugged1.c)
-add_executable(bugged1_stateful bugged1_stateful.c)
-add_executable(bugged2_stateful bugged2_stateful.c)
-add_executable(bugged2 bugged2.c)
-add_executable(bugged3 bugged3.c)
-add_executable(random_test random_test.c)
-add_executable(bugged1_for_liveness bugged1_for_liveness.c)
-add_executable(bugged1_while_liveness bugged1_while_liveness.c)
-add_executable(bugged2_liveness bugged2_liveness.c)
-add_executable(centralized_liveness centralized_liveness.c)
-add_executable(centralized_liveness_deadlock centralized_liveness_deadlock.c)
-add_executable(test_snapshot test_snapshot.c)
+ file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/test/")
+
+ add_executable(centralized centralized_mutex.c)
+ add_executable(bugged1 bugged1.c)
+ add_executable(bugged2 bugged2.c)
+ add_executable(bugged3 bugged3.c)
+ add_executable(random_test random_test.c)
+ add_executable(bugged1_liveness bugged1_liveness.c)
+ add_executable(bugged2_liveness bugged2_liveness.c)
+ add_executable(centralized_liveness centralized_liveness.c)
+ add_executable(centralized_liveness_deadlock centralized_liveness_deadlock.c)
+ add_executable(test_snapshot test_snapshot.c)
+ add_executable(test/compare_snapshot test/compare_snapshot.c)
+
+ target_link_libraries(centralized simgrid m )
+ target_link_libraries(bugged1 simgrid m )
+ target_link_libraries(bugged2 simgrid m )
+ target_link_libraries(bugged3 simgrid m )
+ target_link_libraries(random_test simgrid m )
+ target_link_libraries(bugged1_liveness simgrid m )
+ target_link_libraries(bugged2_liveness simgrid m )
+ target_link_libraries(centralized_liveness simgrid m )
+ target_link_libraries(centralized_liveness_deadlock simgrid m )
+ target_link_libraries(test_snapshot simgrid m )
+ target_link_libraries(test/compare_snapshot simgrid m )