summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorFilip Gawin <filip.gawin@zoho.com>2020-04-17 19:30:57 +0200
committerFilip Gawin <filip.gawin@zoho.com>2020-04-17 19:30:57 +0200
commit63951d9b957b30a110f42a03edb4833cbbaf380e (patch)
tree8402ea533b91a216a1dfecd865d6d86a443bc74f /CMakeLists.txt
parentUpdate README.md (diff)
downloadre3-63951d9b957b30a110f42a03edb4833cbbaf380e.tar
re3-63951d9b957b30a110f42a03edb4833cbbaf380e.tar.gz
re3-63951d9b957b30a110f42a03edb4833cbbaf380e.tar.bz2
re3-63951d9b957b30a110f42a03edb4833cbbaf380e.tar.lz
re3-63951d9b957b30a110f42a03edb4833cbbaf380e.tar.xz
re3-63951d9b957b30a110f42a03edb4833cbbaf380e.tar.zst
re3-63951d9b957b30a110f42a03edb4833cbbaf380e.zip
Diffstat (limited to '')
-rw-r--r--CMakeLists.txt25
1 files changed, 25 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 00000000..2871dff4
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,25 @@
+cmake_Minimum_required(VERSION 3.8)
+
+project(Re3)
+
+set (CMAKE_CXX_STANDARD 14)
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -masm=intel -Wdouble-promotion")
+
+file(GLOB_RECURSE Sources "*.cpp" "*.h")
+
+MACRO(HEADER_DIRECTORIES return_list)
+ FILE(GLOB_RECURSE new_list *.h)
+ SET(dir_list "")
+ FOREACH(file_path ${new_list})
+ GET_FILENAME_COMPONENT(dir_path ${file_path} PATH)
+ SET(dir_list ${dir_list} ${dir_path})
+ ENDFOREACH()
+ LIST(REMOVE_DUPLICATES dir_list)
+ SET(${return_list} ${dir_list})
+ENDMACRO()
+
+HEADER_DIRECTORIES(header_list)
+
+include_directories(${header_list})
+
+add_library(re3 ${Sources})