Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FormerLurker/ArcWelderLib.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFormerLurker <hochgebe@gmail.com>2020-05-12 20:04:06 +0300
committerFormerLurker <hochgebe@gmail.com>2020-05-12 20:04:06 +0300
commit3f28fa125bbed6da8db3c2563a9fd599d5c9c026 (patch)
tree6c242ca32d9595007e71a3fa91e368e6d6fa808c /CMakeLists.txt
parent9abd4af8fe85514c1df214a21100cb9ed9b51d1e (diff)
First attempt to use CMake to build.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt28
1 files changed, 28 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 0000000..4fe8293
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,28 @@
+cmake_minimum_required (VERSION "3.16")
+# You can tweak some common (for all subprojects) stuff here. For example:
+project(Build C CXX)
+
+set(CMAKE_DISABLE_IN_SOURCE_BUILD ON)
+set(CMAKE_DISABLE_SOURCE_CHANGES ON)
+
+if ("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_BINARY_DIR}")
+ message(SEND_ERROR "In-source builds are not allowed.")
+endif ()
+
+set(CMAKE_VERBOSE_MAKEFILE ON)
+set(CMAKE_COLOR_MAKEFILE ON)
+
+# Remove 'lib' prefix for shared libraries on Windows
+if (WIN32)
+ set(CMAKE_SHARED_LIBRARY_PREFIX "")
+endif ()
+
+# add subdirectories to compile in order of inheritance
+add_subdirectory(${CMAKE_SOURCE_DIR}/GcodeProcessorLib)
+add_subdirectory(${CMAKE_SOURCE_DIR}/ArcWelder)
+add_subdirectory(${CMAKE_SOURCE_DIR}/ArcWelderConsole)
+add_subdirectory(${CMAKE_SOURCE_DIR}/ArcWelderInverseProcessor)
+add_subdirectory(${CMAKE_SOURCE_DIR}/PyArcWelder)
+
+
+