mirror of
https://github.com/ggerganov/ggwave.git
synced 2026-02-06 16:47:59 +08:00
35 lines
536 B
CMake
35 lines
536 B
CMake
# core
|
|
|
|
set(TARGET ggwave)
|
|
|
|
add_library(${TARGET}
|
|
ggwave.cpp
|
|
resampler.cpp
|
|
)
|
|
|
|
target_include_directories(${TARGET} PUBLIC
|
|
.
|
|
../include
|
|
)
|
|
|
|
if (BUILD_SHARED_LIBS)
|
|
target_link_libraries(${TARGET} PUBLIC
|
|
${CMAKE_DL_LIBS}
|
|
)
|
|
|
|
target_compile_definitions(${TARGET} PUBLIC
|
|
GGWAVE_SHARED
|
|
)
|
|
endif()
|
|
|
|
if (MINGW)
|
|
target_link_libraries(${TARGET} PUBLIC
|
|
stdc++
|
|
)
|
|
endif()
|
|
|
|
install(TARGETS ${TARGET}
|
|
LIBRARY DESTINATION lib
|
|
ARCHIVE DESTINATION lib/static
|
|
)
|