Source

pynoto / src / Python / CMakeLists.txt

Full commit
PROJECT(python)

INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/src)
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR})

ADD_DEFINITIONS(-DQT_PLUGIN)
ADD_DEFINITIONS(-DQT_SHARED)

SET(hdrs
    PythonInfo.h
)

SET(src
    PythonInfo.cpp
)

SET(moc_hdrs
    IPythonPlugin.h
    PythonPlugin.h
    Preferences/SetupPyVersions.h
    Preferences/PathesModel.h
    Preferences/PyVersionsModel.h
    Settings.h
)

SET(moc
    PythonPlugin.cpp
    Preferences/SetupPyVersions.cpp
    Preferences/PathesModel.cpp
    Preferences/PyVersionsModel.cpp
    Settings.cpp
)

SET(res
)

SET(ui
    Preferences/SetupPyVersions.ui
)

QT4_ADD_RESOURCES(qrc ${res})
QT4_WRAP_UI(uic ${ui})
QT4_WRAP_CPP(moc ${moc_hdrs})

ADD_LIBRARY(python
    SHARED
    ${src}
    ${moc}
    ${uic}
    ${qrc}
)

TARGET_LINK_LIBRARIES(python ${QT_QTCORE_LIBRARY})
TARGET_LINK_LIBRARIES(python ${QT_QTGUI_LIBRARY})
TARGET_LINK_LIBRARIES(python core)