2022-02-07 17:35:25 +01:00
|
|
|
qt_wrap_cpp(test-benchmark-simple_SRC benchmarksimple.h)
|
2021-12-17 21:49:32 +01:00
|
|
|
add_custom_target(build-testbenchmark-simple-deps SOURCES ${test-benchmark-simple_SRC})
|
|
|
|
add_dependencies(gui-build-deps build-testbenchmark-simple-deps)
|
2022-02-06 13:02:52 +01:00
|
|
|
if(USE_BUNDLED_TINYXML2)
|
|
|
|
list(APPEND test-benchmark-simple_SRC $<TARGET_OBJECTS:tinyxml2_objs>)
|
|
|
|
endif()
|
2021-12-17 21:49:32 +01:00
|
|
|
add_executable(benchmark-simple
|
|
|
|
${test-benchmark-simple_SRC}
|
|
|
|
benchmarksimple.cpp
|
|
|
|
$<TARGET_OBJECTS:lib_objs>
|
|
|
|
$<TARGET_OBJECTS:simplecpp_objs>
|
|
|
|
)
|
|
|
|
target_include_directories(benchmark-simple PRIVATE ${CMAKE_SOURCE_DIR}/lib)
|
|
|
|
target_compile_definitions(benchmark-simple PRIVATE SRCDIR="${CMAKE_CURRENT_SOURCE_DIR}")
|
2022-02-07 17:35:25 +01:00
|
|
|
target_link_libraries(benchmark-simple ${QT_CORE_LIB} ${QT_TEST_LIB})
|
2021-12-17 21:49:32 +01:00
|
|
|
if (HAVE_RULES)
|
|
|
|
target_link_libraries(benchmark-simple ${PCRE_LIBRARY})
|
|
|
|
endif()
|
|
|
|
if (USE_Z3)
|
|
|
|
target_link_libraries(benchmark-simple ${Z3_LIBRARIES})
|
2022-02-06 13:02:52 +01:00
|
|
|
endif()
|
|
|
|
if(tinyxml2_FOUND AND NOT USE_BUNDLED_TINYXML2)
|
|
|
|
target_link_libraries(benchmark-simple ${tinyxml2_LIBRARY})
|
2021-12-17 21:49:32 +01:00
|
|
|
endif()
|