-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
38 lines (27 loc) · 1.05 KB
/
CMakeLists.txt
File metadata and controls
38 lines (27 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
cmake_minimum_required (VERSION 3.15)
set(CMAKE_BUILD_TYPE Debug)
# set project name and C++ compiler version
project(pollEngine LANGUAGES C CXX)
message(STATUS "Compiling Project : ${PROJECT_NAME}")
set (CMAKE_CXX_STANDARD 17)
set(CMAKE_C_COMPILER clang)
set(CMAKE_CXX_COMPILER clang++)
if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
MESSAGE("-- Using Clang")
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
MESSAGE("-- Using GNU")
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Intel")
MESSAGE("-- Using Intel")
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
MESSAGE("-- Using MSVC")
endif()
message(STATUS "Project Directory: ${PROJECT_SOURCE_DIR}")
set(CMAKE_BINARY_DIR ${CMAKE_SOURCE_DIR}/build)
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin)
add_subdirectory(common bin_common)
add_subdirectory(core bin_core)
add_subdirectory(app bin_app)
add_subdirectory(adapter bin_adapter)
add_subdirectory(testApp bin_testApp)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(CMAKE_CXX_FLAGS "-std=c++17 -Wall -g -fsanitize=address -fsanitize=leak -v")