Source

pynoto / src / Main / CMakeLists.txt

Full commit
PROJECT(main)

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
    PynotoWindow.h
    IMainPlugin.h
    MainPlugin.h
    BottomDockTitleWidget.h
    Console.h
    SearchResult.h
    Settings.h
    #Preferences.h
    PynotoStyle.h

    ConsoleWidget.h

    Consoles/IssuesConsole.h
    Consoles/IssuesTable.h
    Consoles/IssuesConsoleHeader.h

    Consoles/ApplicationConsole.h
    Consoles/ApplicationOutput.h
    Consoles/ApplicationConsoleHeader.h

    Consoles/LogConsole.h
    Consoles/LogOutput.h
    Consoles/LogConsoleHeader.h

    Preferences/GeneralPrefs.h
)

SET(moc
    PynotoWindow.cpp
    MainPlugin.cpp
    BottomDockTitleWidget.cpp
    Console.cpp
    SearchResult.cpp
    Settings.cpp
    #Preferences.cpp
    PynotoStyle.cpp

    ConsoleWidget.cpp

    Consoles/IssuesConsole.cpp
    Consoles/IssuesTable.cpp
    Consoles/IssuesConsoleHeader.cpp

    Consoles/ApplicationConsole.cpp
    Consoles/ApplicationOutput.cpp
    Consoles/ApplicationConsoleHeader.cpp

    Consoles/LogConsole.cpp
    Consoles/LogOutput.cpp
    Consoles/LogConsoleHeader.cpp

    Preferences/GeneralPrefs.cpp
)

SET(res
    Pynoto.qrc
)

SET(ui
    PynotoWindow.ui
    BottomDockTitleWidget.ui
    ConsoleWidget.ui
    Consoles/IssuesConsoleHeader.ui
    Consoles/ApplicationConsoleHeader.ui
    Consoles/LogConsoleHeader.ui

    Preferences/GeneralPrefs.ui
)

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

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

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