-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
50 lines (40 loc) · 1.42 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
cmake_minimum_required(VERSION 3.0)
project(SakuraSuite)
if(NOT MSVC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
endif()
find_package(Qt5 REQUIRED COMPONENTS Core Gui Xml OpenGL Widgets)
add_definitions(-D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS)
add_subdirectory(PluginFramework)
add_subdirectory(Updater)
set(CMAKE_INCLUDE_CURRENT_DIR True)
set(CMAKE_AUTOMOC True)
qt5_wrap_ui(ui_out
Main/ui/MainWindow.ui
Main/ui/PluginsDialog.ui
Main/ui/PreferencesDialog.ui
Main/ui/ApplicationLog.ui
Main/ui/AboutDialog.ui)
qt5_add_resources(rc_out Main/resources/resources.qrc)
include_directories(Main/include PluginFramework/include Updater/include)
add_executable(sakurasuite
Main/src/main.cpp
Main/src/MainWindow.cpp Main/include/MainWindow.hpp
Main/src/PreferencesDialog.cpp Main/include/PreferencesDialog.hpp
Main/src/OutputStreamMonitor.cpp Main/include/OutputStreamMonitor.hpp
Main/src/ApplicationLog.cpp Main/include/ApplicationLog.hpp
Main/src/AboutDialog.cpp Main/include/AboutDialog.hpp
Main/src/PluginsDialog.cpp Main/include/PluginsDialog.hpp
Main/src/PluginsManager.cpp Main/include/PluginsManager.hpp
Main/src/WiiKeyManager.cpp Main/include/WiiKeyManager.hpp
${ui_out}
${rc_out}
)
target_link_libraries(sakurasuite
PluginFramework
Updater
${Qt5Core_LIBRARIES}
${Qt5Gui_LIBRARIES}
${Qt5Widgets_LIBRARIES}
${Qt5Xml_LIBRARIES}
)