diff options
| author | 崔一鸣 <[email protected]> | 2020-05-10 00:33:12 +0800 |
|---|---|---|
| committer | 崔一鸣 <[email protected]> | 2020-05-10 00:33:12 +0800 |
| commit | bff06936f8e108f791b48e247cfffe439742b94e (patch) | |
| tree | 314319c5df1b8eab4a4c30dd409b4d461f363c88 /CMakeLists.txt | |
| parent | b7bb7b7b2a86310e8f1670acd5dde38ebb849f8f (diff) | |
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..35bfaa1 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,21 @@ +cmake_minimum_required(VERSION 3.5) +project(kni) + +set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake) + +set(CMAKE_CXX_STANDARD 11) +set(CMAKE_C_STANDARD 11) +set(CMAKE_POSITION_INDEPENDENT_CODE ON) +set (CMAKE_CXX_FLAGS "-Wall") +#set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -lasan -fsanitize-recover=address -fsanitize=address -fno-omit-frame-pointer") + +add_definitions(-D_GNU_SOURCE) + +if (CMAKE_BUILD_TYPE STREQUAL Debug) + add_definitions(-DDEBUG) +endif() + +add_subdirectory(vendor) +add_subdirectory(entry) + +# cmake -DCMAKE_BUILD_TYPE=Debug/RelWithDebInfo
\ No newline at end of file |
