Initial commit - it should now be more or less working
[mouse-tracker-for-cubism.git] / CMakeLists.txt
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644 (file)
index 0000000..eb72aa8
--- /dev/null
@@ -0,0 +1,14 @@
+cmake_minimum_required(VERSION 3.16)
+
+project(FacialLandmarksForCubism_project)
+
+add_subdirectory(lib/dlib/dlib dlib_build)
+find_package(OpenCV REQUIRED)
+include_directories(${OpenCV_INCLUDE_DIRS})
+
+add_library(FacialLandmarksForCubism STATIC src/facial_landmark_detector.cpp)
+set_target_properties(FacialLandmarksForCubism PROPERTIES PUBLIC_HEADER include/facial_landmark_detector.h)
+
+target_include_directories(FacialLandmarksForCubism PRIVATE include lib/dlib)
+target_link_libraries(FacialLandmarksForCubism ${OpenCV_LIBS} dlib::dlib)
+