forked from HU-R2D2/polarview
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
28 lines (23 loc) · 1.04 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
cmake_minimum_required(VERSION 2.8.9)
project(polarview)
find_package (Threads)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11 -Werror -Wall")
file(GLOB SOURCES "source/include/*.hpp")
file(GLOB SOURCES_GTEST "../adt/source/include/ADT_Base.hpp"
"../adt/source/include/Angle.hpp"
"../adt/source/include/Length.hpp"
"../adt/source/src/Angle.cpp"
"../adt/source/src/Length.cpp"
"source/src/*.cpp"
"source/include/*.hpp"
"test/*.cpp"
"test/*.hpp")
include_directories(
../adt/source/include
../deps/gtest-1.7.0/include
../deps/gtest-1.7.0)
link_directories(../deps/gtest-1.7.0/src ../adt/source/src)
ADD_LIBRARY(gtest ../deps/gtest-1.7.0/src/gtest-all.cc)
ADD_LIBRARY(gtest_main ../deps/gtest-1.7.0/src/gtest_main.cc)
add_executable(polarview_test ${GTEST} ${SOURCES_GTEST})
target_link_libraries(polarview_test gtest gtest_main ${CMAKE_THREAD_LIBS_INIT})