From 17c6bd83551b838503ab9b1c30d5df9960821b3e Mon Sep 17 00:00:00 2001
From: daveabiy <dawitk27@gmail.com>
Date: Fri, 16 Jul 2021 02:55:59 +0200
Subject: [PATCH] Main compilor for windows

---
 CMakeLists.txt | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)
 create mode 100644 CMakeLists.txt

diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 0000000..a368fdb
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,28 @@
+cmake_minimum_required(VERSION 3.3)
+
+project(LAGRANGIAN)
+
+find_package(SCIP REQUIRED)
+include_directories(${SCIP_INCLUDE_DIRS})
+
+add_executable(LAGRANGIAN
+   SRC/relax_lagr.cpp
+   src/cmain.c
+   
+# link to math library if it is available
+find_library(LIBM m)
+if(NOT LIBM)
+  set(LIBM "")
+endif()
+
+target_link_libraries(LAGRANGIAN ${SCIP_LIBRARIES} ${LIBM})
+if( TARGET examples )
+    add_dependencies( examples LAGRANGIAN )
+endif()
+
+#
+# add check subdirectory for tests
+#
+add_subdirectory(check)
+
+enable_testing()
-- 
GitLab