32 lines
757 B
CMake
32 lines
757 B
CMake
cmake_minimum_required(VERSION 3.25)
|
|
project(aca-tasks)
|
|
|
|
# Set C++ standard
|
|
set(CMAKE_CXX_STANDARD 20)
|
|
|
|
# Set install directory
|
|
set(CMAKE_INSTALL_PREFIX ${CMAKE_BINARY_DIR}/installed)
|
|
|
|
# Set compiler flags for optimization on Release build
|
|
if (${CMAKE_BUILD_TYPE} STREQUAL "Release")
|
|
# Compiler options
|
|
add_compile_options(
|
|
-Wall
|
|
-Wpedantic
|
|
-O3
|
|
-g3)
|
|
|
|
# Defines for some libraries
|
|
add_compile_definitions(
|
|
NDEBUG)
|
|
endif ()
|
|
|
|
# Include general purpose libraries to build
|
|
add_subdirectory(third-party/fmt)
|
|
|
|
# Include CMakeLists files from subdirs for specific tasks
|
|
add_subdirectory(task1)
|
|
add_subdirectory(task2)
|
|
add_subdirectory(task3)
|
|
add_subdirectory(task4)
|
|
add_subdirectory(task5) |