target_link_libraries

This commit is contained in:
qPCR4vir
2018-10-01 19:04:12 +02:00
parent 65d2440e26
commit 8c8adb397e
3 changed files with 9 additions and 7 deletions

View File

@@ -7,7 +7,7 @@ if(NANA_CMAKE_ENABLE_AUDIO)
find_package(ASOUND)
if(ASOUND_FOUND)
target_include_directories(nana PUBLIC ${ASOUND_INCLUDE_DIRS})
target_compile_options(nana PUBLIC -lasound)
target_link_libraries(nana PUBLIC ${ASOUND_LIBRARY})
else()
message(FATAL_ERROR "libasound is not found")
endif()