1
0
mirror of synced 2024-12-22 12:35:52 +01:00
ImHex/plugins/builtin/tests/CMakeLists.txt

19 lines
540 B
CMake
Raw Normal View History

project(${IMHEX_PLUGIN_NAME}_tests)
# Add new tests here #
set(AVAILABLE_TESTS
Providers/ReadWrite
Providers/InvalidResize
)
add_library(${PROJECT_NAME} SHARED
source/main.cpp
)
target_include_directories(${PROJECT_NAME} PUBLIC ${CMAKE_SOURCE_DIR}/plugins/builtin/include)
target_link_libraries(${PROJECT_NAME} PRIVATE libimhex)
foreach (test IN LISTS AVAILABLE_TESTS)
add_test(NAME "Plugin_${IMHEX_PLUGIN_NAME}/${test}" COMMAND $<TARGET_FILE:plugins_test> "${test}" WORKING_DIRECTORY ${CMAKE_BINARY_DIR})
endforeach ()