X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=src%2FCMakeLists.txt;fp=src%2FCMakeLists.txt;h=8582b7ff806d601bc274869ae701e42c9e131601;hb=d2f8c31e5652bd6143bd42fd4db9e29dcbe4339b;hp=0000000000000000000000000000000000000000;hpb=511dab1a9daf02d8988151e6f5b8b560437bb322;p=ipdf%2Fcode.git diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt new file mode 100644 index 0000000..8582b7f --- /dev/null +++ b/src/CMakeLists.txt @@ -0,0 +1,43 @@ +cmake_minimum_required(VERSION 2.8) + +include(FindPkgConfig) +pkg_search_module(SDL2 REQUIRED sdl2) + +project(ipdf) + +set(CMAKE_CXX_FLAGS "-std=gnu++0x") + +include_directories(${SDL2_INCLUDE_DIRS}) + +add_library(ipdflib +common.h +log.h +log.cpp +ipdf.h +view.h +view.cpp +document.h +document.cpp +screen.h +screen.cpp +) + +add_executable(ipdf +main.cpp +) + +target_link_libraries(ipdf +ipdflib +GL +${SDL2_LIBRARIES} +) + +add_executable(ipdf-testsaveload +tests/saveload.cpp +) + +target_link_libraries(ipdf-testsaveload +ipdflib +GL +${SDL2_LIBRARIES} +)