Skip to content

Instantly share code, notes, and snippets.

@caiorss
caiorss / CMakeLists.txt
Created January 9, 2019 00:38
Example C++ project with Cmake + VCPKG package manager + Nana GUI library
cmake_minimum_required(VERSION 3.9)
if(DEFINED ENV{VCPKG_ROOT} AND NOT DEFINED CMAKE_TOOLCHAIN_FILE)
set(CMAKE_TOOLCHAIN_FILE "$ENV{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake"
CACHE STRING "")
message(" [INFO] VCPKG CMAKE_TOOLCHAIN_FILE = ${CMAKE_TOOLCHAIN_FILE}")
endif()
#======= Global Project Configuration =========#