track code styles
fsfw/fsfw example hosted/pipeline/head This commit looks good Details

This commit is contained in:
Robin Müller 2022-05-02 09:33:39 +02:00
parent 094fa011af
commit ed0077e3f1
No known key found for this signature in database
GPG Key ID: 71B58F8A3CDFA9AC
3 changed files with 67 additions and 61 deletions

1
.gitignore vendored
View File

@ -2,6 +2,7 @@
/.idea/*
!/.idea/runConfigurations
!/.idea/cmake.xml
!/.idea/codeStyles
# Python
__pycache__

View File

@ -0,0 +1,5 @@
<component name="ProjectCodeStyleConfiguration">
<state>
<option name="PREFERRED_PROJECT_CODE_STYLE" value="Default" />
</state>
</component>

View File

@ -48,7 +48,7 @@ set(FSFW_ADDITIONAL_INC_PATHS
"${CMAKE_CURRENT_BINARY_DIR}"
CACHE STRING
"FSFW configuration paths"
)
)
configure_file(${COMMON_CONFIG_PATH}/commonConfig.h.in commonConfig.h)
configure_file(${FSFW_CONFIG_PATH}/FSFWConfig.h.in FSFWConfig.h)
@ -74,7 +74,7 @@ endif()
if(FSFW_OSAL MATCHES linux)
find_package(Threads REQUIRED)
# Hosted
# Hosted
else()
if(WIN32)
@ -108,14 +108,14 @@ target_link_libraries(${TARGET_NAME} PRIVATE
${LIB_FSFW_NAME}
${LIB_OS_NAME}
# ${LIB_FSFW_HAL_NAME}
)
)
# Add include paths for all sources.
target_include_directories(${TARGET_NAME} PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${FSFW_CONFIG_PATH}
)
)
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
@ -144,7 +144,7 @@ endif()
# Compile options for all sources.
target_compile_options(${TARGET_NAME} PRIVATE
${WARNING_FLAGS}
)
)
if(NOT CMAKE_SIZE)
set(CMAKE_SIZE size)
@ -164,7 +164,7 @@ string(CONCAT POST_BUILD_COMMENT
"Target OSAL: ${FSFW_OSAL}\n"
"Target Build Type: ${CMAKE_BUILD_TYPE}\n"
"${TARGET_STRING}"
)
)
add_custom_command(
TARGET ${TARGET_NAME}