summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt18
1 files changed, 18 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 0000000..4b6f7ba
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,18 @@
+cmake_minimum_required(VERSION 3.5)
+project(Cplt LANGUAGES CXX)
+
+option(FORCE_COLORED_OUTPUT "Always produce ANSI-colored output (GNU/Clang only)." ON)
+if(FORCE_COLORED_OUTPUT)
+ if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
+ add_compile_options(-fdiagnostics-color=always)
+ elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
+ add_compile_options(-fcolor-diagnostics)
+ endif()
+endif()
+
+include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
+conan_basic_setup()
+
+add_subdirectory(3rdparty/imgui)
+add_subdirectory(3rdparty/imnodes)
+add_subdirectory(core)