You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
625 B
23 lines
625 B
cmake_minimum_required(VERSION 3.5) |
|
|
|
project(cpu-tracker LANGUAGES C) |
|
|
|
set(C_STANDARD 11) |
|
enable_testing() |
|
|
|
if(CMAKE_C_COMPILER_ID MATCHES "Clang") |
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Weverything") |
|
elseif(CMAKE_C_COMPILER_ID STREQUAL "GNU") |
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra") |
|
endif() |
|
|
|
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) |
|
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib) |
|
|
|
get_filename_component(EXTERN_DIR ${CMAKE_CURRENT_LIST_DIR}/extern ABSOLUTE) |
|
|
|
option(BUILD_TESTS "Build tests" ON) |
|
|
|
add_subdirectory(app) |
|
add_subdirectory(lib/thread) |
|
add_subdirectory(lib/log)
|
|
|