Permalink
Switch branches/tags
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
34 lines (25 sloc) 952 Bytes
CMAKE_MINIMUM_REQUIRED (VERSION 2.8)
PROJECT(SpikeDB)
IF(APPLE)
SET(BOOST_ROOT "/opt/local/")
SET(CMAKE_LIBRARY_PATH /opt/local/lib ${CMAKE_LIBRARY_PATH} )
SET(CMAKE_MODULE_PATH /opt/local/lib)
SET(PYTHON_INCLUDE_PATH "/opt/local/Library/Frameworks/Python.framework/Headers")
SET(PYTHON_LIBRARIES "/opt/local/lib/libpython2.7.dylib")
SET(PYTHON_LIBRARY_DIRS "/opt/local/lib/")
FIND_LIBRARY(COREFOUNDATION_LIBRARY CoreFoundation)
ELSE(APPLE)
SET(COREFOUNDATION_LIBRARY "")
ENDIF(APPLE)
SET(PythonLibs_FIND_VERSION 2.7)
FIND_PACKAGE(PkgConfig)
FIND_PACKAGE(PythonLibs REQUIRED)
#FIND_PACKAGE(Boost 1.54.0 COMPONENTS python REQUIRED)
FIND_PACKAGE(Boost 1.50.0 COMPONENTS python REQUIRED)
pkg_check_modules(GTKMM gtkmm-2.4)
pkg_check_modules(CAIRO cairo)
pkg_check_modules(SQLITE3 sqlite3)
IF(APPLE)
SET(PYTHON_INCLUDE_PATH /opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/)
ENDIF(APPLE)
ADD_SUBDIRECTORY(src)