Adds cmake file for junction test case
authorPeizhao Ou <peizhaoo@uci.edu>
Thu, 1 Feb 2018 23:01:52 +0000 (15:01 -0800)
committerPeizhao Ou <peizhaoo@uci.edu>
Thu, 1 Feb 2018 23:01:52 +0000 (15:01 -0800)
CMakeLists.txt
test/CMakeLists.txt [new file with mode: 0644]

index 15e6cfc..0519f28 100644 (file)
@@ -140,3 +140,5 @@ if(NOT CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
     set(JUNCTION_ALL_DLLS "${JUNCTION_ALL_DLLS}" PARENT_SCOPE)
 endif()
 
+add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/test)
+
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
new file mode 100644 (file)
index 0000000..c7b7493
--- /dev/null
@@ -0,0 +1,16 @@
+cmake_minimum_required(VERSION 2.8.5)
+
+set(PACKAGE_NAME stress-sequential-junction)
+set(JUNCTION_TEST_SOURCES
+    junction_driver.cpp
+)
+
+set(CMAKE_CONFIGURATION_TYPES "Release" CACHE INTERNAL "Build configs")
+
+set(JUNCTION_LIB
+  junction
+  turf
+)
+
+add_executable(${PACKAGE_NAME} ${JUNCTION_TEST_SOURCES})
+target_link_libraries(${PACKAGE_NAME} ${JUNCTION_LIB})