Skip to content

Commit 08ef5bd

Browse files
committed
Add cmakelists
1 parent df6dc48 commit 08ef5bd

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

src/test/CMakeLists.txt

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
cmake_minimum_required(VERSION 3.0.2)
2+
project(tests_debug)
3+
# set(CMAKE_BUILD_TYPE Release)
4+
set(CMAKE_BUILD_TYPE Debug)
5+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
6+
set(PATH "../../../src/test/")
7+
set(SOURCES
8+
${PATH}main.cpp
9+
${PATH}json_pointer_test.h
10+
${PATH}unit_test.h)
11+
12+
find_library (GTEST_LIB gtest)
13+
find_library (JSON_LIB json)
14+
find_library (JSON_POINTER_LIB json_pointer)
15+
16+
message(${GTEST_LIB})
17+
message(${JSON_LIB})
18+
message(${JSON_POINTER_LIB})
19+
20+
add_executable (tests_debug ${SOURCES})
21+
target_link_libraries (tests_debug ${GTEST_LIB} ${JSON_LIB} ${JSON_POINTER_LIB})
22+
target_include_directories (tests_debug PUBLIC "/usr/local/include")

0 commit comments

Comments
 (0)