diff --git a/EKF/CMakeLists.txt b/EKF/CMakeLists.txt index cbe0fd0e89..e56a158c7e 100644 --- a/EKF/CMakeLists.txt +++ b/EKF/CMakeLists.txt @@ -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) diff --git a/airdata/CMakeLists.txt b/airdata/CMakeLists.txt index 3e55b4bb73..38fda5b8df 100644 --- a/airdata/CMakeLists.txt +++ b/airdata/CMakeLists.txt @@ -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}) \ No newline at end of file diff --git a/attitude_fw/CMakeLists.txt b/attitude_fw/CMakeLists.txt index 29dfacb499..7053ac69ec 100644 --- a/attitude_fw/CMakeLists.txt +++ b/attitude_fw/CMakeLists.txt @@ -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}) diff --git a/geo/CMakeLists.txt b/geo/CMakeLists.txt index 1d3a6c3551..5fac3941e1 100644 --- a/geo/CMakeLists.txt +++ b/geo/CMakeLists.txt @@ -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}) diff --git a/geo_lookup/CMakeLists.txt b/geo_lookup/CMakeLists.txt index acfdf58196..603470dff0 100644 --- a/geo_lookup/CMakeLists.txt +++ b/geo_lookup/CMakeLists.txt @@ -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}) diff --git a/l1/CMakeLists.txt b/l1/CMakeLists.txt index 127842b80c..e888778755 100644 --- a/l1/CMakeLists.txt +++ b/l1/CMakeLists.txt @@ -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) diff --git a/tecs/CMakeLists.txt b/tecs/CMakeLists.txt index 35d5543d1f..ea0bb0886a 100644 --- a/tecs/CMakeLists.txt +++ b/tecs/CMakeLists.txt @@ -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}) diff --git a/validation/CMakeLists.txt b/validation/CMakeLists.txt index d9c028b516..01bc738caf 100644 --- a/validation/CMakeLists.txt +++ b/validation/CMakeLists.txt @@ -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})