From 31539f3af0c7beea865b29fdda0840c79f14710e Mon Sep 17 00:00:00 2001 From: Franklin Wei Date: Thu, 7 Mar 2019 19:14:35 -0500 Subject: Import from fieldviz --- CMakeLists.txt | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 CMakeLists.txt (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..53de8b9 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,23 @@ +cmake_minimum_required(VERSION 3.9) +project(libfml VERSION 1.0 DESCRIPTION "Frank's Math Library") + +add_library(fml SHARED + src/quat.cpp + src/vec2.cpp + src/vec3.cpp) + +set_target_properties(fml PROPERTIES + VERSION ${PROJECT_VERSION} + SOVERSION 1) + +install(DIRECTORY "include/" + DESTINATION "include" + FILES_MATCHING + PATTERN "*.h") + +target_include_directories(fml PRIVATE include) + +include(GNUInstallDirs) +install(TARGETS fml + LIBRARY DESTINATION /usr/lib + PUBLIC_HEADER DESTINATION /usr/include) -- cgit v1.1