Mercurial > retraceit
comparison src/CMakeLists.txt @ 57:2cd76e6c0fcf
Add MacOS build support
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Tue, 19 May 2015 15:36:00 +0200 |
parents | 07744e276579 |
children | af8f1792d48d |
comparison
equal
deleted
inserted
replaced
56:016cbcb1a233 | 57:2cd76e6c0fcf |
---|---|
25 folderselectdialog.cpp | 25 folderselectdialog.cpp |
26 icons/icon.rc | 26 icons/icon.rc |
27 ) | 27 ) |
28 | 28 |
29 find_package(Qt5LinguistTools) | 29 find_package(Qt5LinguistTools) |
30 | |
31 # See: https://bugreports.qt-project.org/browse/QTBUG-35918 | |
32 # extra static libs should be automatically managed but they | |
33 # are not so we make this here explicitly neccessary. | |
34 # The list is taken from the libs/*.prl file | |
35 if(APPLE) | |
36 set(GUI_TYPE MACOSX_BUNDLE) | |
37 include_directories ( /Developer/Headers/FlatCarbon ) | |
38 find_library(COCOA_LIBRARAY Cocoa) | |
39 find_library(CARBON_LIBRARY Carbon) | |
40 find_library(APP_SERVICES_LIBRARY ApplicationServices) | |
41 find_library(FOUNDATION_LIBRARAY Foundation) | |
42 find_library(CORE_SERVICES_LIBRARAY CoreServices) | |
43 find_library(CORE_FOUNDATION_LIBRARY CoreFoundation) | |
44 find_library(OPENGL_LIBRARAY OpenGL) | |
45 find_library(AGL_LIBRARY AGL) | |
46 find_library(IOKIT_LIBRARY IOKit) | |
30 | 47 |
31 if(UNIX) | |
32 # See: https://bugreports.qt-project.org/browse/QTBUG-35918 | |
33 # XCB_EXTRA_LIBS should be gotten automatically. | |
34 # The following list is taken from the .pri file | |
35 get_target_property(_loc Qt5::Widgets LOCATION) | 48 get_target_property(_loc Qt5::Widgets LOCATION) |
36 get_filename_component(_qtpath ${_loc} PATH) | 49 get_filename_component(_qtpath ${_loc} PATH) |
37 | 50 |
38 set(XCB_EXTRA_LIBS | 51 set(MAC_EXTRA_LIBS |
39 -L${_qtpath} | 52 -L${_qtpath} |
40 -lQt5DBus -lQt5Gui -lQt5Core -lQt5PlatformSupport | 53 -lQt5Gui -lQt5Core -lQt5PlatformSupport |
41 -lX11 -lX11-xcb -lxcb | 54 -lQt5PrintSupport |
42 -lXrender -lSM -lICE -ldbus-1 | 55 -lz -lm ${APP_SERVICES_LIBRARY} |
43 -lm -ldl -lrt -lpthread ) | 56 ${FOUNDATION_LIBRARAY} |
57 ${CORE_FOUNDATION_LIBRARY} | |
58 ${COCOA_LIBRARAY} | |
59 ${CORE_SERVICES_LIBRARAY} | |
60 ${OPENGL_LIBRARAY} | |
61 ${AGL_LIBRARY} | |
62 ${CARBON_LIBRARY} | |
63 ${IOKIT_LIBRARY} | |
64 -lqtharfbuzzng -lz -lcups) | |
65 set(EXTRA_STATIC_LIBS Qt5::QCocoaIntegrationPlugin ${MAC_EXTRA_LIBS} ) | |
44 | 66 |
45 elseif(WIN32) | 67 elseif(WIN32) |
46 set (_add_executable_params WIN32) | 68 set (_add_executable_params WIN32) |
47 | 69 |
48 get_target_property(_loc Qt5::Widgets LOCATION) | 70 get_target_property(_loc Qt5::Widgets LOCATION) |