aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorFranklin Wei <me@fwei.tk>2019-03-07 19:14:35 -0500
committerFranklin Wei <me@fwei.tk>2019-03-07 19:14:35 -0500
commit31539f3af0c7beea865b29fdda0840c79f14710e (patch)
tree7bea014a44a938f71ea21b3a8ba457b3576348d9 /CMakeLists.txt
downloadlibfml-31539f3af0c7beea865b29fdda0840c79f14710e.zip
libfml-31539f3af0c7beea865b29fdda0840c79f14710e.tar.gz
libfml-31539f3af0c7beea865b29fdda0840c79f14710e.tar.bz2
libfml-31539f3af0c7beea865b29fdda0840c79f14710e.tar.xz
Import from fieldviz
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt23
1 files changed, 23 insertions, 0 deletions
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)