More testing particularly of negatives
[ipdf/code.git] / src / CMakeLists.txt
1 cmake_minimum_required(VERSION 2.8)
2
3 include(FindPkgConfig)
4 pkg_search_module(SDL2 REQUIRED sdl2)
5
6 project(ipdf)
7
8 set(CMAKE_CXX_FLAGS "-std=gnu++0x")
9
10 include_directories(${SDL2_INCLUDE_DIRS})
11
12 add_library(ipdflib
13 common.h
14 log.h
15 log.cpp
16 ipdf.h
17 view.h
18 view.cpp
19 document.h
20 document.cpp
21 screen.h
22 screen.cpp
23 )
24
25 add_executable(ipdf
26 main.cpp
27 )
28
29 target_link_libraries(ipdf
30 ipdflib
31 GL
32 ${SDL2_LIBRARIES}
33 )
34
35 add_executable(ipdf-testsaveload
36 tests/saveload.cpp
37 )
38
39 target_link_libraries(ipdf-testsaveload
40 ipdflib
41 GL
42 ${SDL2_LIBRARIES}
43 )

UCC git Repository :: git.ucc.asn.au