Commit 0561f42a authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

Clean up include directories

GIT_SILENT
parent c6c2f63e
......@@ -44,7 +44,7 @@ else()
endif()
configure_file(config-musicbrainz.h.in ${CMAKE_CURRENT_BINARY_DIR}/config-musicbrainz.h )
include_directories(${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR})
include_directories(${CMAKE_CURRENT_BINARY_DIR})
add_subdirectory(kcmcddb)
add_subdirectory(libkcddb)
......
......@@ -19,6 +19,9 @@ target_link_libraries(kcm_cddb PRIVATE
KF5::WidgetsAddons
KF5::Cddb
)
target_include_directories(kcm_cddb
PRIVATE ${CMAKE_SOURCE_DIR} # for libkcddb/ prefixed includes of library headers
)
install(TARGETS kcm_cddb DESTINATION ${PLUGIN_INSTALL_DIR})
......
add_definitions(-DTRANSLATION_DOMAIN="libkcddb")
include_directories(${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${QT_INCLUDES})
if(MUSICBRAINZ5_FOUND)
set(musicbrainz_sources
musicbrainz/musicbrainzlookup.cpp
......
......@@ -3,6 +3,9 @@ function(add_unit_tests)
add_executable(${test} ${test}.cpp)
add_test( ${test} ${test} )
target_link_libraries(${test} Qt5::Test KF5::Cddb)
target_include_directories(${test}
PRIVATE ${CMAKE_SOURCE_DIR} # for libkcddb/ prefixed includes of library headers
)
endforeach()
endfunction()
......
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