forked from Archive/PX4-Autopilot
set MODULE define for each library
- this is needed for INFO, WARN, ERR messages when used within PX4
This commit is contained in:
parent
50631e5d98
commit
a80b3ab610
|
@ -48,7 +48,7 @@ add_library(ecl_EKF
|
|||
)
|
||||
|
||||
add_dependencies(ecl_EKF prebuild_targets)
|
||||
|
||||
target_compile_definitions(ecl_EKF PRIVATE -DMODULE_NAME="ecl/EKF")
|
||||
target_include_directories(ecl_EKF PUBLIC ${ECL_SOURCE_DIR})
|
||||
target_link_libraries(ecl_EKF PRIVATE ecl_geo ecl_geo_lookup mathlib)
|
||||
|
||||
|
|
|
@ -35,5 +35,5 @@ add_library(ecl_airdata
|
|||
WindEstimator.cpp
|
||||
)
|
||||
add_dependencies(ecl_airdata prebuild_targets)
|
||||
|
||||
target_compile_definitions(ecl_airdata PRIVATE -DMODULE_NAME="ecl/airdata")
|
||||
target_include_directories(ecl_airdata PUBLIC ${ECL_SOURCE_DIR})
|
|
@ -39,5 +39,5 @@ add_library(ecl_attitude_fw
|
|||
ecl_yaw_controller.cpp
|
||||
)
|
||||
add_dependencies(ecl_attitude_fw prebuild_targets)
|
||||
|
||||
target_compile_definitions(ecl_attitude_fw PRIVATE -DMODULE_NAME="ecl/attitude_fw")
|
||||
target_include_directories(ecl_attitude_fw PUBLIC ${ECL_SOURCE_DIR})
|
||||
|
|
|
@ -35,5 +35,5 @@ add_library(ecl_geo
|
|||
geo.cpp
|
||||
)
|
||||
add_dependencies(ecl_geo prebuild_targets)
|
||||
|
||||
target_compile_definitions(ecl_geo PRIVATE -DMODULE_NAME="ecl/geo")
|
||||
target_include_directories(ecl_geo PUBLIC ${ECL_SOURCE_DIR})
|
||||
|
|
|
@ -35,5 +35,5 @@ add_library(ecl_geo_lookup
|
|||
geo_mag_declination.cpp
|
||||
)
|
||||
add_dependencies(ecl_geo_lookup prebuild_targets)
|
||||
|
||||
target_compile_definitions(ecl_geo_lookup PRIVATE -DMODULE_NAME="ecl/geo_lookup")
|
||||
target_include_directories(ecl_geo_lookup PUBLIC ${ECL_SOURCE_DIR})
|
||||
|
|
|
@ -35,6 +35,6 @@ add_library(ecl_l1
|
|||
ecl_l1_pos_controller.cpp
|
||||
)
|
||||
add_dependencies(ecl_l1 prebuild_targets)
|
||||
|
||||
target_compile_definitions(ecl_l1 PRIVATE -DMODULE_NAME="ecl/l1")
|
||||
target_include_directories(ecl_l1 PUBLIC ${ECL_SOURCE_DIR})
|
||||
target_link_libraries(ecl_l1 PRIVATE ecl_geo)
|
||||
|
|
|
@ -35,5 +35,5 @@ add_library(ecl_tecs
|
|||
tecs.cpp
|
||||
)
|
||||
add_dependencies(ecl_tecs prebuild_targets)
|
||||
|
||||
target_compile_definitions(ecl_tecs PRIVATE -DMODULE_NAME="ecl/tecs")
|
||||
target_include_directories(ecl_tecs PUBLIC ${ECL_SOURCE_DIR})
|
||||
|
|
|
@ -36,5 +36,5 @@ add_library(ecl_validation
|
|||
data_validator_group.cpp
|
||||
)
|
||||
add_dependencies(ecl_validation prebuild_targets)
|
||||
|
||||
target_compile_definitions(ecl_validation PRIVATE -DMODULE_NAME="ecl/validation")
|
||||
target_include_directories(ecl_validation PUBLIC ${ECL_SOURCE_DIR})
|
||||
|
|
Loading…
Reference in New Issue