change the structure a bit

This commit is contained in:
Robin Müller 2022-09-28 19:53:31 +02:00
parent fe8e9715ac
commit dd62bfc010
No known key found for this signature in database
GPG Key ID: 11D4952C8CCEF814
8 changed files with 7 additions and 13 deletions

View File

@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.22.0)
# We can version our project using CMake
project(foo VERSION 0.1.0)
project(fsfw-from-zero VERSION 0.1.0)
# Sometimes, a C++ project might require a certain C++ standard to build.
# The following directives make sure that the compiler supports the required
@ -8,16 +8,13 @@ project(foo VERSION 0.1.0)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
if(BUILD_FINISHED)
add_subdirectory(finished)
endif()
add_subdirectory(start)
# Add the framework dependency
set(FSFW_OSAL host CACHE STRING "FSFW OSAL")
set(FSFW_CONFIG_PATH ${CMAKE_CURRENT_SOURCE_DIR})
add_subdirectory(fsfw)
# 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
target_link_libraries(fsfw-from-zero PRIVATE fsfw)
if(BUILD_FINISHED)
target_link_libraries(fsfw-from-zero-done PRIVATE fsfw)
endif()

View File

@ -1,3 +0,0 @@
add_executable(fsfw-from-zero)
target_sources(fsfw-from-zero PRIVATE main.cpp)
target_include_directories(fsfw-from-zero PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})