2022-02-07 17:35:25 +01:00
|
|
|
qt_wrap_cpp(test-filelist_SRC testfilelist.h)
|
2021-12-17 21:49:32 +01:00
|
|
|
add_custom_target(build-testfilelist-deps SOURCES ${test-filelist_SRC})
|
|
|
|
add_dependencies(gui-build-deps build-testfilelist-deps)
|
|
|
|
add_executable(test-filelist
|
|
|
|
${test-filelist_SRC}
|
|
|
|
testfilelist.cpp
|
|
|
|
${CMAKE_SOURCE_DIR}/gui/filelist.cpp
|
|
|
|
${CMAKE_SOURCE_DIR}/lib/pathmatch.cpp
|
|
|
|
${CMAKE_SOURCE_DIR}/lib/path.cpp
|
|
|
|
${CMAKE_SOURCE_DIR}/lib/utils.cpp
|
|
|
|
$<TARGET_OBJECTS:simplecpp_objs>
|
|
|
|
)
|
|
|
|
target_include_directories(test-filelist PRIVATE ${CMAKE_SOURCE_DIR}/gui ${CMAKE_SOURCE_DIR}/lib ${CMAKE_SOURCE_DIR}/externals/simplecpp)
|
|
|
|
target_compile_definitions(test-filelist PRIVATE SRCDIR="${CMAKE_CURRENT_SOURCE_DIR}")
|
2022-02-07 17:35:25 +01:00
|
|
|
target_link_libraries(test-filelist ${QT_CORE_LIB} ${QT_TEST_LIB})
|