aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
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)