From 58e49388e92b1cf13b6c3137d35a722a998696a9 Mon Sep 17 00:00:00 2001 From: chodak166 Date: Sat, 29 Jul 2023 11:42:01 +0200 Subject: [PATCH] Added initial cpu-tracker project structure; Added cpu-tracker project CMakeLists.txt --- tieto-cpu-tracker/CMakeLists.txt | 23 +++++++++++++++++++++ tieto-cpu-tracker/app/CMakeLists.txt | 1 + tieto-cpu-tracker/lib/log/CMakeLists.txt | 1 + tieto-cpu-tracker/lib/thread/CMakeLists.txt | 1 + 4 files changed, 26 insertions(+) create mode 100644 tieto-cpu-tracker/CMakeLists.txt create mode 100644 tieto-cpu-tracker/app/CMakeLists.txt create mode 100644 tieto-cpu-tracker/lib/log/CMakeLists.txt create mode 100644 tieto-cpu-tracker/lib/thread/CMakeLists.txt diff --git a/tieto-cpu-tracker/CMakeLists.txt b/tieto-cpu-tracker/CMakeLists.txt new file mode 100644 index 0000000..c20c595 --- /dev/null +++ b/tieto-cpu-tracker/CMakeLists.txt @@ -0,0 +1,23 @@ +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) diff --git a/tieto-cpu-tracker/app/CMakeLists.txt b/tieto-cpu-tracker/app/CMakeLists.txt new file mode 100644 index 0000000..b5caf61 --- /dev/null +++ b/tieto-cpu-tracker/app/CMakeLists.txt @@ -0,0 +1 @@ +cmake_minimum_required(VERSION 3.5) diff --git a/tieto-cpu-tracker/lib/log/CMakeLists.txt b/tieto-cpu-tracker/lib/log/CMakeLists.txt new file mode 100644 index 0000000..b5caf61 --- /dev/null +++ b/tieto-cpu-tracker/lib/log/CMakeLists.txt @@ -0,0 +1 @@ +cmake_minimum_required(VERSION 3.5) diff --git a/tieto-cpu-tracker/lib/thread/CMakeLists.txt b/tieto-cpu-tracker/lib/thread/CMakeLists.txt new file mode 100644 index 0000000..b5caf61 --- /dev/null +++ b/tieto-cpu-tracker/lib/thread/CMakeLists.txt @@ -0,0 +1 @@ +cmake_minimum_required(VERSION 3.5)