From e83f9ca7e79ce583000ab629b6fb80270cbb6a0d Mon Sep 17 00:00:00 2001 From: Peizhao Ou Date: Thu, 1 Feb 2018 15:01:52 -0800 Subject: [PATCH] Adds cmake file for junction test case --- CMakeLists.txt | 2 ++ test/CMakeLists.txt | 16 ++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 test/CMakeLists.txt 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}) -- 2.34.1