42 lines
1.0 KiB
CMake
42 lines
1.0 KiB
CMake
# CMakeList.txt : Top-level CMake project file, do global configuration
|
|
# and include sub-projects here.
|
|
#
|
|
cmake_minimum_required (VERSION 3.12)
|
|
|
|
|
|
if(NOT DEFINED VCPKG_ROOT_PATH)
|
|
set(VCPKG_ROOT_PATH ${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/vcpkg)
|
|
set(CMAKE_TOOLCHAIN_FILE
|
|
"${VCPKG_ROOT_PATH}/scripts/buildsystems/vcpkg.cmake"
|
|
CACHE STRING "Vcpkg toolchain file")
|
|
endif()
|
|
|
|
message("The vcpkg root path ${VCPKG_ROOT_PATH}")
|
|
|
|
if(NOT DEFINED CMAKE_TOOLCHAIN_FILE)
|
|
set(TOOLCHAIN_PATH ${VCPKG_ROOT_PATH}/scripts/buildsystems/vcpkg.cmake)
|
|
|
|
set(CMAKE_TOOLCHAIN_FILE
|
|
"${TOOLCHAIN_PATH}"
|
|
CACHE STRING "Vcpkg toolchain file")
|
|
|
|
message("Using default toolchain file")
|
|
endif()
|
|
|
|
if(NOT DEFINED VCPKG_TRIPLET)
|
|
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
|
set(MACOSX TRUE)
|
|
set(VCPKG_TRIPLET "x64-osx")
|
|
else ()
|
|
set(VCPKG_TRIPLET "x64-linux")
|
|
endif()
|
|
|
|
message("Using default ${VCPKG_TRIPLET} triplet")
|
|
endif()
|
|
|
|
|
|
project ("SpotifyDemo")
|
|
|
|
# Include sub-projects.
|
|
add_subdirectory ("SpotifyDemo")
|