From: Peizhao Ou Date: Thu, 1 Feb 2018 23:01:52 +0000 (-0800) Subject: Adds cmake file for junction test case X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e83f9ca7e79ce583000ab629b6fb80270cbb6a0d;p=junction.git Adds cmake file for junction test case --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 15e6cfc..0519f28 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 index 0000000..c7b7493 --- /dev/null +++ b/test/CMakeLists.txt @@ -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})