summaryrefslogtreecommitdiff
path: root/tests/auto/cmake/test_modules/CMakeLists.txt
blob: 3b70635885f7660204cf22d5d4f2886c9134a348 (plain)
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

cmake_minimum_required(VERSION 2.8)

project(test_modules)

find_package(Qt5Core REQUIRED)

find_package(Qt5Script REQUIRED)
find_package(Qt5ScriptTools REQUIRED)

include_directories(
  ${Qt5Script_INCLUDE_DIRS}
  ${Qt5ScriptTools_INCLUDE_DIRS}
)

add_definitions(
  ${Qt5Script_DEFINITIONS}
  ${Qt5ScriptTools_DEFINITIONS}
)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${Qt5Core_EXECUTABLE_COMPILE_FLAGS}")

add_executable(mainapp main.cpp)
target_link_libraries(mainapp
  ${Qt5Script_LIBRARIES}
  ${Qt5ScriptTools_LIBRARIES}
)