Kaydet (Commit) 8cff9019 authored tarafından Fatih Aşıcı's avatar Fatih Aşıcı

Do not hard code Python version

üst b4908035
...@@ -4,6 +4,9 @@ PROJECT (comar) ...@@ -4,6 +4,9 @@ PROJECT (comar)
# CMake 2.6 required # CMake 2.6 required
CMAKE_MINIMUM_REQUIRED(VERSION 2.6) CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
# Python is required
FIND_PACKAGE(PythonLibs)
# Application name # Application name
SET (APP_NAME "comar") SET (APP_NAME "comar")
SET (APP_SUFFIX "3") SET (APP_SUFFIX "3")
...@@ -44,12 +47,12 @@ SET (SOURCES src/main.c ...@@ -44,12 +47,12 @@ SET (SOURCES src/main.c
src/utils.c) src/utils.c)
# Set standard libraries # Set standard libraries
SET (LIBS python2.6 SET (LIBS ${PYTHON_LIBRARIES}
dbus-1) dbus-1)
# Include standard headers # Include standard headers
INCLUDE_DIRECTORIES (include/ INCLUDE_DIRECTORIES (include/
/usr/include/python2.6 ${PYTHON_INCLUDE_DIRS}
/usr/include/dbus-1.0 /usr/include/dbus-1.0
/usr/lib/dbus-1.0/include) /usr/lib/dbus-1.0/include)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment