We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a93825 commit d851f2fCopy full SHA for d851f2f
1 file changed
CMakeLists.txt
@@ -0,0 +1,23 @@
1
+cmake_minimum_required(VERSION 3.15)
2
+project(cppbase)
3
+
4
+set(CMAKE_CXX_STANDARD 17)
5
+set(CMAKE_CXX_STANDARD_REQUIRED ON)
6
+set(CMAKE_CXX_EXTENSIONS OFF)
7
8
+include_directories(${CMAKE_SOURCE_DIR}/include)
9
10
+file(GLOB_RECURSE CPPBASE_SRC_FILES "${CMAKE_SOURCE_DIR}/src/*.cpp")
11
12
+add_library(cppbase STATIC ${CPPBASE_SRC_FILES})
13
14
15
+option(BUILD_TEST "Build test cases for cppbase" OFF)
16
+if(BUILD_TEST)
17
+ add_subdirectory(test)
18
+endif()
19
20
+option(BUILD_EXAMPLES "Build examples for cppbase" OFF)
21
+if(BUILD_EXAMPLES)
22
+ add_subdirectory(examples)
23
0 commit comments