summaryrefslogtreecommitdiffstats
path: root/src/graphics/engine/test/CMakeLists.txt
blob: 775abe52801908c3f03dc1dcc9e01e7592483062 (plain)
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
cmake_minimum_required(VERSION 2.8)

set(CMAKE_BUILD_TYPE debug)
set(CMAKE_CXX_FLAGS_DEBUG "-g -O0 -Wall -Wold-style-cast -std=gnu++0x")

set(MODELFILE_TEST_SOURCES
modelfile_test.cpp
../modelfile.cpp
../../../common/logger.cpp
../../../common/stringutils.cpp
../../../common/iman.cpp
)

add_definitions(-DMODELFILE_NO_ENGINE)

include_directories(
.
../../..
${GTEST_INCLUDE_DIR}
)

add_executable(modelfile_test ${MODELFILE_TEST_SOURCES})

target_link_libraries(modelfile_test gtest)

add_test(modelfile_test modelfile_test)