mirror of
https://github.com/nasa/fprime.git
synced 2025-12-10 00:44:37 -06:00
* Refactored type organization * Creating better configuration/types header hierarchy * Replace FpConfig type aliases with FPP generated aliases * Add the aliases to the FPP model * Config + Type Aliases builds * Renamed Fw/Types.h,hpp to Fw/FPrimeBasicTypes.h,hpp * Updating to FPP-a7 * Adding newline * sp * Fixing minor nit from review * Spurious ; --------- Co-authored-by: Andrei Tumbar <andrei.tumbar@jpl.nasa.gov>
37 lines
1.2 KiB
CMake
37 lines
1.2 KiB
CMake
####
|
|
# CMakeLists.txt:
|
|
#
|
|
# Build core F prime.
|
|
####
|
|
cmake_minimum_required(VERSION 3.16)
|
|
project(FPrime C CXX)
|
|
set(FPRIME_FRAMEWORK_PATH "${CMAKE_CURRENT_LIST_DIR}" CACHE PATH "Location of F prime framework" FORCE)
|
|
set(FPRIME_PROJECT_ROOT "${CMAKE_CURRENT_LIST_DIR}" CACHE PATH "Root path of F prime project" FORCE)
|
|
|
|
# Include the build for F prime.
|
|
include("${CMAKE_CURRENT_LIST_DIR}/cmake/FPrime.cmake")
|
|
|
|
# Set default warning flags for all builds
|
|
# Specific build modules that do not comply with these flags can disable one or more of them
|
|
#
|
|
# -Wno-unused-parameter: Disable the unused parameter warning for now. F' has a lot of interfaces,
|
|
# so unused method parameters are common in the F prime code base. Eventually all intentionally
|
|
# unused parameters should be annotated to avoid this error.
|
|
#
|
|
# -Wno-vla: Variable length arrays are required to support sending to async serializable
|
|
# ports. https://github.com/nasa/fprime/issues/945
|
|
#
|
|
add_compile_options(
|
|
$<$<COMPILE_LANGUAGE:CXX>:-Wold-style-cast>
|
|
-pedantic
|
|
-Wall
|
|
-Wextra
|
|
-Wconversion
|
|
-Wdouble-promotion
|
|
-Wshadow
|
|
-Werror
|
|
-Wno-unused-parameter
|
|
-Wno-vla
|
|
)
|
|
include("${CMAKE_CURRENT_LIST_DIR}/cmake/FPrime-Code.cmake")
|