Add MapLinearizabilityTest
[junction.git] / samples / MapLinearizabilityTest / CMakeLists.txt
diff --git a/samples/MapLinearizabilityTest/CMakeLists.txt b/samples/MapLinearizabilityTest/CMakeLists.txt
new file mode 100644 (file)
index 0000000..e7774af
--- /dev/null
@@ -0,0 +1,10 @@
+cmake_minimum_required(VERSION 2.8.5)
+
+get_filename_component(SAMPLE_NAME ${CMAKE_CURRENT_SOURCE_DIR} NAME)
+if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
+    # CMAKE_CONFIGURATION_TYPES only reliable if set before project(), and not from an include file
+    set(CMAKE_CONFIGURATION_TYPES "Debug;RelWithAsserts;RelWithDebInfo" CACHE INTERNAL "Build configs")
+    project(${SAMPLE_NAME})
+endif()    
+
+include(../AddSample.cmake)