Skip to content

Instantly share code, notes, and snippets.

@dakcarto
Created December 3, 2016 22:21
Show Gist options
  • Save dakcarto/1f14287dd4d18ffc6db6ceae6ad0cab1 to your computer and use it in GitHub Desktop.
Save dakcarto/1f14287dd4d18ffc6db6ceae6ad0cab1 to your computer and use it in GitHub Desktop.
# cmake_minimum_required(VERSION 2.8.11)
set(CMAKE_MODULE_PATH
"${QGIS_SRC}/cmake"
${CMAKE_MODULE_PATH}
)
set(CMAKE_FIND_LIBRARY_PREFIXES lib)
set(CMAKE_FIND_LIBRARY_SUFFIXES .dylib .so .a)
# set(CMAKE_FIND_FRAMEWORK ONLY)
message(STATUS "CMake's PythonInterp module")
find_package(PythonInterp 3 REQUIRED)
message(STATUS "QGIS's FindPythonLibrary module")
find_package(PythonLibrary)
message(STATUS "CMake's PythonLibs module")
find_package(PythonLibs 3)
include(CMakeDebugMacros)
DUMP_CMAKE_VARS()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment