-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
32 lines (26 loc) · 890 Bytes
/
CMakeLists.txt
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
cmake_minimum_required(VERSION 3.28)
project(CFD_Simulation_Engine
VERSION 0.1
DESCRIPTION "A compact but flexible CFD engine."
LANGUAGES C
)
set(CMAKE_C_STANDARD 11)
set(CMAKE_C_STANDARD_REQUIRED ON)
# set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
# set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
# if(CMAKE_C_COMPILER_ID MATCHES "GNU|Clang")
# add_compile_options(-Wall -Wextra -Werror -O2)
# set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -O0")
# set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -O0")
# elseif(CMAKE_C_COMPILER_ID STREQUAL "MSVC")
# # add_compile_options(/W4 /WX)
# add_compile_definitions(_CRT_SECURE_NO_WARNINGS)
# endif()
add_definitions(-DLOG_USE_COLOR)
include_directories(
${CMAKE_SOURCE_DIR}
)
add_subdirectory(libs)
add_subdirectory(core)
add_subdirectory(apps)