File: CMakeLists.txt

package info (click to toggle)
qtpim-opensource-src 5.0~git20201102.f9a8f0fc%2Bdfsg1-6
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 18,236 kB
  • sloc: cpp: 82,965; xml: 91; makefile: 81; javascript: 67
file content (27 lines) | stat: -rw-r--r-- 528 bytes parent folder | download | duplicates (3)
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(Qt5Contacts REQUIRED)
find_package(Qt5Organizer REQUIRED)

include_directories(
  ${Qt5Contacts_INCLUDE_DIRS}
  ${Qt5Organizer_INCLUDE_DIRS}
)

add_definitions(
  ${Qt5Contacts_DEFINITIONS}
  ${Qt5Organizer_DEFINITIONS}
)

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

add_executable(mainapp main.cpp)
target_link_libraries(mainapp
  ${Qt5Contacts_LIBRARIES}
  ${Qt5Organizer_LIBRARIES}
)