mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 17:14:59 +02:00
link required unix libraries to portaudio target
This commit is contained in:
parent
aaf9b73daf
commit
6d67d6f1a6
1 changed files with 14 additions and 14 deletions
|
@ -21,20 +21,6 @@ find_package(GLUT REQUIRED)
|
|||
find_package(GLM REQUIRED)
|
||||
find_package(LodePNG REQUIRED)
|
||||
|
||||
if (UNIX AND NOT APPLE)
|
||||
find_package(Threads REQUIRED)
|
||||
find_package(Librt REQUIRED)
|
||||
find_package(Jack REQUIRED)
|
||||
find_package(ALSA REQUIRED)
|
||||
|
||||
target_link_libraries(interface
|
||||
${CMAKE_THREAD_LIBS_INIT}
|
||||
${LIBRT_LIBRARIES}
|
||||
${JACK_LIBRARIES}
|
||||
${ALSA_LIBRARIES}
|
||||
)
|
||||
endif (UNIX AND NOT APPLE)
|
||||
|
||||
include_directories(
|
||||
${OPENGL_INCLUDE_DIRS}
|
||||
${GLUT_INCLUDE_DIRS}
|
||||
|
@ -59,6 +45,20 @@ ExternalProject_Add(
|
|||
BUILD_COMMAND make
|
||||
)
|
||||
|
||||
if (UNIX AND NOT APPLE)
|
||||
find_package(Threads REQUIRED)
|
||||
find_package(Librt REQUIRED)
|
||||
find_package(Jack REQUIRED)
|
||||
find_package(ALSA REQUIRED)
|
||||
|
||||
target_link_libraries(portaudio
|
||||
${CMAKE_THREAD_LIBS_INIT}
|
||||
${LIBRT_LIBRARIES}
|
||||
${JACK_LIBRARIES}
|
||||
${ALSA_LIBRARIES}
|
||||
)
|
||||
endif (UNIX AND NOT APPLE)
|
||||
|
||||
ExternalProject_Get_Property(portaudio binary_dir)
|
||||
ExternalProject_Get_Property(portaudio source_dir)
|
||||
include_directories(${source_dir}/include)
|
||||
|
|
Loading…
Reference in a new issue