qmlFrontend/CMakeLists.txt
author unc0rr
Sun, 25 Jan 2015 00:08:42 +0300
branchqmlfrontend
changeset 10751 97d00ace1aed
child 10819 57e21f7621b0
permissions -rw-r--r--
CMake script for qmlFrontend
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10751
97d00ace1aed CMake script for qmlFrontend
unc0rr
parents:
diff changeset
     1
cmake_minimum_required(VERSION 2.8.11)
97d00ace1aed CMake script for qmlFrontend
unc0rr
parents:
diff changeset
     2
97d00ace1aed CMake script for qmlFrontend
unc0rr
parents:
diff changeset
     3
project(hedgewars)
97d00ace1aed CMake script for qmlFrontend
unc0rr
parents:
diff changeset
     4
97d00ace1aed CMake script for qmlFrontend
unc0rr
parents:
diff changeset
     5
set(CMAKE_INCLUDE_CURRENT_DIR ON)
97d00ace1aed CMake script for qmlFrontend
unc0rr
parents:
diff changeset
     6
set(CMAKE_AUTOMOC ON)
97d00ace1aed CMake script for qmlFrontend
unc0rr
parents:
diff changeset
     7
97d00ace1aed CMake script for qmlFrontend
unc0rr
parents:
diff changeset
     8
find_package(OpenGL)
97d00ace1aed CMake script for qmlFrontend
unc0rr
parents:
diff changeset
     9
97d00ace1aed CMake script for qmlFrontend
unc0rr
parents:
diff changeset
    10
find_package(Qt5 COMPONENTS Core Qml Quick Gui)
97d00ace1aed CMake script for qmlFrontend
unc0rr
parents:
diff changeset
    11
97d00ace1aed CMake script for qmlFrontend
unc0rr
parents:
diff changeset
    12
add_executable(hedgewars WIN32
97d00ace1aed CMake script for qmlFrontend
unc0rr
parents:
diff changeset
    13
    main
97d00ace1aed CMake script for qmlFrontend
unc0rr
parents:
diff changeset
    14
    hwengine
97d00ace1aed CMake script for qmlFrontend
unc0rr
parents:
diff changeset
    15
    previewimageprovider
97d00ace1aed CMake script for qmlFrontend
unc0rr
parents:
diff changeset
    16
    themeiconprovider
97d00ace1aed CMake script for qmlFrontend
unc0rr
parents:
diff changeset
    17
    qtquick2applicationviewer/qtquick2applicationviewer
97d00ace1aed CMake script for qmlFrontend
unc0rr
parents:
diff changeset
    18
    )
97d00ace1aed CMake script for qmlFrontend
unc0rr
parents:
diff changeset
    19
97d00ace1aed CMake script for qmlFrontend
unc0rr
parents:
diff changeset
    20
include_directories(${OPENGL_INCLUDE_DIR})
97d00ace1aed CMake script for qmlFrontend
unc0rr
parents:
diff changeset
    21
97d00ace1aed CMake script for qmlFrontend
unc0rr
parents:
diff changeset
    22
target_link_libraries(hedgewars Qt5::Core Qt5::Gui Qt5::Quick Qt5::Qml)