Source

pynoto / src / Theme / CMakeLists.txt

Full commit
PROJECT(theme)

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
    IThemePlugin.h
    ITheme.h
    ThemePlugin.h
    Theme.h
    ThemeEditor.h
    CommonModel.h
    DefaultModel.h
    LexerModel.h
    PythonModel.h
    AskThemeName.h
)

SET(moc
    ThemePlugin.cpp
    Theme.cpp
    ThemeEditor.cpp
    CommonModel.cpp
    DefaultModel.cpp
    LexerModel.cpp
    PythonModel.cpp
    AskThemeName.cpp
)

SET(res
)

SET(ui
    ThemeEditor.ui
    AskThemeName.ui
)

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

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

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