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