aca-tasks/CMakeLists.txt

32 lines
757 B
CMake
Raw Permalink Normal View History

2023-11-07 20:24:24 +00:00
cmake_minimum_required(VERSION 3.25)
2023-11-07 10:51:34 +00:00
project(aca-tasks)
2023-10-31 13:48:54 +00:00
2023-11-07 20:24:24 +00:00
# Set C++ standard
2023-11-01 20:04:12 +00:00
set(CMAKE_CXX_STANDARD 20)
2023-10-31 13:48:54 +00:00
2023-11-07 20:24:24 +00:00
# Set install directory
2023-11-07 10:33:16 +00:00
set(CMAKE_INSTALL_PREFIX ${CMAKE_BINARY_DIR}/installed)
2023-11-07 20:24:24 +00:00
# Set compiler flags for optimization on Release build
2023-11-01 09:29:35 +00:00
if (${CMAKE_BUILD_TYPE} STREQUAL "Release")
2023-11-07 20:24:24 +00:00
# Compiler options
2023-11-01 09:29:35 +00:00
add_compile_options(
-Wall
-Wpedantic
-O3
2023-11-07 20:24:24 +00:00
-g3)
# Defines for some libraries
2023-11-01 09:29:35 +00:00
add_compile_definitions(
NDEBUG)
endif ()
2023-11-07 20:24:24 +00:00
# Include general purpose libraries to build
2023-11-07 10:33:16 +00:00
add_subdirectory(third-party/fmt)
2023-11-07 20:24:24 +00:00
# Include CMakeLists files from subdirs for specific tasks
2023-12-02 13:34:06 +00:00
add_subdirectory(task1)
2023-12-05 09:49:07 +00:00
add_subdirectory(task2)
2023-12-02 15:04:12 +00:00
add_subdirectory(task3)
2023-12-19 11:43:47 +00:00
add_subdirectory(task4)
add_subdirectory(task5)