From edc5a8a42bd488a3f7e257a36cc289526540c8eb Mon Sep 17 00:00:00 2001 From: Michael Yuen Date: Tue, 15 Mar 2016 07:09:55 +0000 Subject: [PATCH] Added library export --- .gitignore | 3 +++ CMakeLists.txt | 10 +++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 13e1453..3eeb730 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,6 @@ CMakeCache.txt *.o *.a *.cmake +Makefile +sysroot +install_manifest.txt diff --git a/CMakeLists.txt b/CMakeLists.txt index 97e9fc0..b3c30ce 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,13 @@ -add_library (open-simplex-noise open-simplex-noise.c) +cmake_minimum_required(VERSION 2.8) + +add_library (open-simplex-noise STATIC open-simplex-noise.c) target_include_directories (open-simplex-noise PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}) +install(TARGETS open-simplex-noise + DESTINATION "lib") + +install(FILES open-simplex-noise.h + DESTINATION "include") +