afu_test: update tests/dummy_afu/CMakeLists.txt
Update CMakeLists.txt for dummy_afu unit tests to account for changes in
afu_test framework.
opae_test_add_static_lib(TARGET dummy_afu-static
SOURCE ${OPAE_SDK_SOURCE}/samples/dummy_afu/dummy_afu.cpp
LIBS
- opae-c
- opae-cxx-core
+ afu-test
)
target_compile_definitions(dummy_afu-static
PRIVATE main=dummy_afu_main
)
-target_compile_options(dummy_afu-static PUBLIC -Wno-unused-result)
-
-target_include_directories(dummy_afu-static
- PRIVATE
- ${CMAKE_SOURCE_DIR}/samples/dummy_afu
- ${CMAKE_SOURCE_DIR}/external/CLI11/include
- ${CMAKE_SOURCE_DIR}/external/spdlog/include
-)
opae_test_add(TARGET test_dummy_afu
SOURCE test_dummy_afu.cpp
LIBS
+ afu-test
dummy_afu-static
test-fpgad-static
TEST_FPGAD
)
-target_compile_options(test_dummy_afu PUBLIC -Wno-unused-result)
target_include_directories(test_dummy_afu
PRIVATE
- ${CMAKE_SOURCE_DIR}/external/CLI11/include
- ${CMAKE_SOURCE_DIR}/external/spdlog/include
${CMAKE_SOURCE_DIR}/samples/dummy_afu
${CMAKE_SOURCE_DIR}/external/opae-test/framework/mock/test_fpgad
)
-
