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 COMPONENTS python REQUIRED)
pkg_check_modules(GTKMM gtkmm-2.4)
pkg_check_modules(CAIRO cairo)
pkg_check_modules(SQLITE3 sqlite3)

SET(PYTHON_INCLUDE_PATH /opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/)

ADD_SUBDIRECTORY(src)


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 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)


Fix apple (macports) specific line in cmake
Fix apple (macports) specific line in cmake
