change the structure a bit
This commit is contained in:
parent
fe8e9715ac
commit
dd62bfc010
@ -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()
|
||||
|
@ -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})
|
Loading…
x
Reference in New Issue
Block a user