forked from Ramblurr/PietCreator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
59 lines (46 loc) · 1.24 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
project(pietcreator)
cmake_minimum_required(VERSION 2.6)
set( CMAKE_BUILD_TYPE Debug)
set( DEBUG_BUILD_TYPE ON )
find_package(Qt5 COMPONENTS Core Gui Widgets REQUIRED)
add_subdirectory( npiet )
include_directories(${QT_INCLUDES} ${CMAKE_CURRENT_BINARY_DIR} ./npiet .)
set( pietcreator_SRCS
main.cpp
MainWindow.cpp
ImageModel.cpp
PixelDelegate.cpp
KColorCells.cpp
KColorMimeData.cpp
KColorPatch.cpp
ViewMonitor.cpp
Command.cpp
CommandsModel.cpp
CommandDelegate.cpp
ResizeDialog.cpp
RunController.cpp
NPietObserver.cpp
CommandWidget.cpp
DebugWidget.cpp
CommandImpl.cpp
FlowCompass.cpp
UndoCommands.cpp
UndoHandler.cpp )
set( CMAKE_AUTOMOC ON )
set( pietcreator_RCS
fallback.qrc
pietcreator.qrc )
qt5_wrap_cpp( pietcreator_SRCS )
QT5_ADD_RESOURCES( pietcreator_SRCS ${pietcreator_RCS} )
qt5_wrap_ui( pietcreator_SRCS MainWindow.ui DebugWidget.ui )
IF(WIN32)
add_executable(pietcreator ${pietcreator_SRCS} ${CMAKE_CURRENT_SOURCE_DIR}/pietcreator.rc)
else()
add_executable(pietcreator ${pietcreator_SRCS})
endif(WIN32)
target_link_libraries( pietcreator
Qt5::Gui
Qt5::Core
Qt5::Widgets
npiet
)