forked from BradyBrenot/huestacean
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
72 lines (61 loc) · 1.76 KB
/
CMakeLists.txt
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
cmake_minimum_required(VERSION 3.9)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTORCC ON)
project(Huestacean)
find_package(Qt5Core REQUIRED)
find_package(Qt5Network REQUIRED)
find_package(Qt5Quick REQUIRED)
set(SOURCES
${SOURCES}
${CMAKE_CURRENT_SOURCE_DIR}/src/bridgediscovery.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/entertainment.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/huebridge.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/huestacean.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/main.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/objectmodel.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/utility.cpp
)
set(HEADERS
${HEADERS}
${CMAKE_CURRENT_SOURCE_DIR}/include/bridgediscovery.h
${CMAKE_CURRENT_SOURCE_DIR}/include/entertainment.h
${CMAKE_CURRENT_SOURCE_DIR}/include/huebridge.h
${CMAKE_CURRENT_SOURCE_DIR}/include/huestacean.h
${CMAKE_CURRENT_SOURCE_DIR}/include/objectmodel.h
${CMAKE_CURRENT_SOURCE_DIR}/include/utility.h
)
QT5_WRAP_CPP(HEADERS_MOC ${HEADERS})
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include ${CMAKE_CURRENT_SOURCE_DIR}/mbedtls/include ${CMAKE_CURRENT_SOURCE_DIR})
add_subdirectory(screen_capture_lite)
add_subdirectory(mbedtls)
add_executable(huestacean WIN32 MACOSX_BUNDLE ${SOURCES} ${HEADERS} ${HEADERS_MOC} qml.qrc)
set(LIBRARIES
${LIBRARIES}
Qt5::Core
Qt5::Network
Qt5::Quick
screen_capture_lite
mbedtls
pthread
X11
Xext
Xinerama
Xfixes
)
#screen_capture_lite additional requirements
if(WIN32)
set(LIBRARIES
${LIBRARIES}
Dwmapi
)
elseif(APPLE)
find_library(corefoundation_lib CoreFoundation)
find_library(cocoa_lib Cocoa)
set(LIBRARIES
${LIBRARIES}
${corefoundation_lib}
${cocoa_lib}
)
endif()
target_link_libraries(huestacean ${LIBRARIES})