-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
48 lines (39 loc) · 1.08 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
cmake_minimum_required(VERSION 3.0)
project(SkyrimAlchemy)
# Find includes in corresponding build directories
set(CMAKE_INCLUDE_CURRENT_DIR ON)
# Instruct CMake to run moc automatically when needed.
set(CMAKE_AUTOMOC ON)
# Instruct CMake to create code from Qt designer ui files
set(CMAKE_AUTOUIC ON)
# Find the QtWidgets library
find_package(Qt5Widgets CONFIG REQUIRED)
include_directories(
build/skyrimalchemy_autogen/include
)
set(
skyrimalchemy_RCCS
resources/resources.qrc
)
set(skyrimalchemy_SRC
src/main.cpp
src/skyrimalchemy.cpp
src/alchemy_effect.cpp
src/alchemy_material.cpp
src/alchemy_recipe.cpp
src/material_manager.cpp
src/alchemy_material_model.cpp
src/alchemy_effect_model.cpp
src/alchemy_recipe_model.cpp
)
QT5_ADD_RESOURCES(resources_RCC_SRCS ${skyrimalchemy_RCCS})
# Tell CMake to create the helloworld executable
add_executable(
skyrimalchemy
${skyrimalchemy_SRC}
${resources_RCC_SRCS}
)
# Use the Widgets module from Qt 5.
target_link_libraries(skyrimalchemy Qt5::Widgets)
# Install the executable
install(TARGETS skyrimalchemy DESTINATION bin)