Source

pynoto / src / Project / CMakeLists.txt

Full commit
PROJECT(project)

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(moc_hdrs
    IProject.h
    IProjectPlugin.h
    ProjectPlugin.h
    ProjectManagerWidget.h
    ProjectFile.h
    ProjectTreeModel.h
    Node.h
    Properties/ProjectProperties.h
    Properties/General.h
    Properties/CodeCheck.h
)

SET(moc
    ProjectPlugin.cpp
    ProjectManagerWidget.cpp
    ProjectFile.cpp
    ProjectTreeModel.cpp
    Node.cpp
    Properties/ProjectProperties.cpp
    Properties/General.cpp
    Properties/CodeCheck.cpp
)

SET(res
)

SET(ui
    Properties/ProjectProperties.ui
    Properties/General.ui
    Properties/CodeCheck.ui
)

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

ADD_LIBRARY(project
    SHARED
    ${moc}
    ${uic}
    ${qrc}
)

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