- added ZMusic library detection to CMake configuration

This commit is contained in:
alexey.lysiuk 2020-02-09 15:51:50 +02:00
parent 2dd3c28d05
commit a1b5ab6e9b
1 changed files with 6 additions and 0 deletions

View File

@ -14,6 +14,12 @@ include( CheckIncludeFiles )
include( CheckLibraryExists )
include( FindPkgConfig )
if( MSVC )
find_package( ZMusic )
else()
find_package( ZMusic REQUIRED )
endif()
if( MSVC AND NOT ZMUSIC_FOUND )
# Use prebuilt library
set( ZMUSIC_ROOT_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../bin/windows/zmusic" )