Skip to content

Commit

Permalink
Fix nasa#711, Clean unit test build recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
skliper committed Aug 7, 2020
1 parent 2040c08 commit ab26c7b
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions fsw/cfe-core/unit-test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,6 @@ include_directories(
${cfe-core_MISSION_DIR}/src/fs
)

# Also include the core module public includes for now TODO cleanup
foreach(MODULE ${MISSION_CORE_MODULES})
get_filename_component(MODULE_NAME ${MODULE} NAME)
include_directories($<TARGET_PROPERTY:${MODULE_NAME},INTERFACE_INCLUDE_DIRECTORIES>)
endforeach(MODULE ${MISSION_CORE_MODULES})

# CFE needs a supplemental test support hook library
add_library(ut_cfe-core_support STATIC
ut_support.c
Expand Down Expand Up @@ -72,9 +66,11 @@ foreach(MODULE ${CFE_CORE_MODULES})
${UT_COVERAGE_LINK_FLAGS}
ut_cfe-core_support
ut_cfe-core_stubs
ut_assert
# mission_msg) #TODO short term... will stub out eventually
msg)
ut_assert)

# TODO short term hack for testing with new code
target_link_libraries(${UT_TARGET_NAME}_UT msg)
#target_link_libraries(${UT_TARGET_NAME}_UT mission_msg)

add_test(${UT_TARGET_NAME}_UT ${UT_TARGET_NAME}_UT)
install(TARGETS ${UT_TARGET_NAME}_UT DESTINATION ${TGTNAME}/${UT_INSTALL_SUBDIR})
Expand Down

0 comments on commit ab26c7b

Please sign in to comment.