We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df6dc48 commit 08ef5bdCopy full SHA for 08ef5bd
src/test/CMakeLists.txt
@@ -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