Commit 3266b131 authored by Stefan Brüns's avatar Stefan Brüns Committed by Friedrich W. H. Kossebau
Browse files

Clean up unnecessary cmake include_directories statements

For the regular library sources, CMAKE_*_DIR/src is implicit. Only the
extractortest autotest needs a private header from the sources.
parent 65b386f4
Pipeline #107852 passed with stage
in 45 seconds
......@@ -39,10 +39,6 @@ ecm_setup_version(PROJECT
VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/baloowidgets_version.h"
PACKAGE_VERSION_FILE "${CMAKE_CURRENT_BINARY_DIR}/KF5BalooWidgetsConfigVersion.cmake")
include_directories(
${CMAKE_SOURCE_DIR}/src
${CMAKE_BINARY_DIR}/src
)
add_subdirectory(src)
if (BUILD_TESTING)
add_subdirectory(test)
......
......@@ -19,6 +19,10 @@ ecm_add_tests(
Qt5::Widgets
)
target_include_directories(extractortest
PRIVATE ${CMAKE_SOURCE_DIR}/src
)
# Set PATH so baloo_filemetadata_temp_extractor from the build directory is used
if(WIN32)
set_property(TEST "extractortest" PROPERTY ENVIRONMENT "PATH=${CMAKE_BINARY_DIR}/bin\\;$ENV{PATH}")
......
add_definitions(-DTRANSLATION_DOMAIN=\"baloowidgets5\")
include_directories(${CMAKE_SOURCE_DIR})
set(tagsfileitemaction_debug_SRCS tagsfileitemaction.cpp)
kcoreaddons_add_plugin(tagsfileitemaction
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment