소스 검색

CMake: Add SoundTouch include path to target property

Yuri Kunde Schlesner 9 년 전
부모
커밋
74afcd5328
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 0
      CMakeLists.txt
  2. 0 2
      src/audio_core/CMakeLists.txt

+ 2 - 0
CMakeLists.txt

@@ -272,6 +272,8 @@ endif()
 
 # process subdirectories
 add_subdirectory(externals/soundtouch)
+# The SoundTouch target doesn't export the necessary include paths as properties by default
+target_include_directories(SoundTouch INTERFACE "externals/soundtouch/include")
 
 enable_testing()
 

+ 0 - 2
src/audio_core/CMakeLists.txt

@@ -27,8 +27,6 @@ set(HEADERS
             time_stretch.h
             )
 
-include_directories(../../externals/soundtouch/include)
-
 if(SDL2_FOUND)
     set(SRCS ${SRCS} sdl2_sink.cpp)
     set(HEADERS ${HEADERS} sdl2_sink.h)