From 56aa19593f19d26145832983ea9a22a77a335472 Mon Sep 17 00:00:00 2001 From: Joshua Moerman Date: Thu, 24 Nov 2016 22:17:23 +0100 Subject: [PATCH] (committing very old stuff) Adds cmake support --- CMakeLists.txt | 19 +++++++++++++++++++ dummy.cpp | 3 +++ 2 files changed, 22 insertions(+) create mode 100644 CMakeLists.txt create mode 100644 dummy.cpp diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..852614d --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,19 @@ +cmake_minimum_required(VERSION 2.8) + +set(LIBNAME ImageStreams) + +file(GLOB sources "*.cpp") +file(GLOB headers "include/*.hpp") + +add_library(${LIBNAME} ${headers} ${sources}) + +find_library(LIBPNG png) + +set(libs ${LIBPNG}) +set(${LIBNAME}_LIBRARIES ${LIBNAME} ${libs} CACHE INTERNAL "") + +target_link_libraries(${LIBNAME} ${libs}) +target_include_directories(${LIBNAME} PUBLIC "include/") + +install(TARGETS ${LIBNAME} DESTINATION lib) +install(FILES ${headers} DESTINATION include/ImageStreams) diff --git a/dummy.cpp b/dummy.cpp new file mode 100644 index 0000000..19dff3a --- /dev/null +++ b/dummy.cpp @@ -0,0 +1,3 @@ +// To fool cmake it's a c++ project +static int x = x; +