qmlFrontend/CMakeLists.txt
author unC0Rr
Wed, 02 Dec 2015 13:39:16 +0300
branchqmlfrontend
changeset 11444 dd1350a475d9
parent 10886 99273b7afbff
permissions -rw-r--r--
Fix build for windows + other small fixes
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
10886
99273b7afbff - Merge default
unc0rr
parents: 10819
diff changeset
    12
qt5_add_resources(qresources qmlFrontend.qrc)
99273b7afbff - Merge default
unc0rr
parents: 10819
diff changeset
    13
10751
97d00ace1aed CMake script for qmlFrontend
unc0rr
parents:
diff changeset
    14
add_executable(hedgewars WIN32
97d00ace1aed CMake script for qmlFrontend
unc0rr
parents:
diff changeset
    15
    main
97d00ace1aed CMake script for qmlFrontend
unc0rr
parents:
diff changeset
    16
    hwengine
97d00ace1aed CMake script for qmlFrontend
unc0rr
parents:
diff changeset
    17
    previewimageprovider
97d00ace1aed CMake script for qmlFrontend
unc0rr
parents:
diff changeset
    18
    themeiconprovider
97d00ace1aed CMake script for qmlFrontend
unc0rr
parents:
diff changeset
    19
    qtquick2applicationviewer/qtquick2applicationviewer
10819
57e21f7621b0 Send selected scheme config on engine initialization (WIP)
unc0rr
parents: 10751
diff changeset
    20
    flib.h
10886
99273b7afbff - Merge default
unc0rr
parents: 10819
diff changeset
    21
    ${qresources}
10751
97d00ace1aed CMake script for qmlFrontend
unc0rr
parents:
diff changeset
    22
    )
97d00ace1aed CMake script for qmlFrontend
unc0rr
parents:
diff changeset
    23
97d00ace1aed CMake script for qmlFrontend
unc0rr
parents:
diff changeset
    24
include_directories(${OPENGL_INCLUDE_DIR})
97d00ace1aed CMake script for qmlFrontend
unc0rr
parents:
diff changeset
    25
97d00ace1aed CMake script for qmlFrontend
unc0rr
parents:
diff changeset
    26
target_link_libraries(hedgewars Qt5::Core Qt5::Gui Qt5::Quick Qt5::Qml)
11444
dd1350a475d9 Fix build for windows + other small fixes
unC0Rr
parents: 10886
diff changeset
    27
install(PROGRAMS "${EXECUTABLE_OUTPUT_PATH}/hedgewars${CMAKE_EXECUTABLE_SUFFIX}" DESTINATION ${target_binary_install_dir})