fsfw-from-zero/CMakeLists.txt

21 lines
692 B
CMake
Raw Normal View History

2022-10-05 09:57:53 +02:00
cmake_minimum_required(VERSION 3.16.0)
2022-09-02 08:39:20 +02:00
# We can version our project using CMake
2022-09-28 19:53:31 +02:00
project(fsfw-from-zero VERSION 0.1.0)
2022-09-02 08:39:20 +02:00
# Sometimes, a C++ project might require a certain C++ standard to build.
# The following directives make sure that the compiler supports the required
# standard
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
2022-09-28 19:53:31 +02:00
# Add the framework dependency
2022-09-02 09:58:43 +02:00
set(FSFW_OSAL host CACHE STRING "FSFW OSAL")
set(FSFW_CONFIG_PATH ${CMAKE_CURRENT_SOURCE_DIR})
2022-09-02 09:07:20 +02:00
add_subdirectory(fsfw)
2022-09-28 19:53:31 +02:00
# Add our executable and its only source file
add_executable(fsfw-from-zero main.cpp)
# Link the framework so we can use it from our application
2022-09-02 09:07:20 +02:00
target_link_libraries(fsfw-from-zero PRIVATE fsfw)