-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt~
56 lines (40 loc) · 1.32 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
cmake_minimum_required(VERSION 2.8.8)
project(photobooth)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -ggdb")
# Tell CMake to run moc when necessary:
set(CMAKE_AUTOMOC ON)
# As moc files are generated in the binary dir, tell CMake
# to always look for includes there:
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(LIBS_PATH ${CMAKE_SOURCE_DIR}/libs)
# Widgets finds its own dependencies.
find_package(Qt5Widgets REQUIRED)
# Find chdkptp library
find_library(CHDKPTP_LIBRARY NAMES chdkptp
HINTS
${LIBS_PATH}/chdkptp
)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake)
find_package(Lua52 REQUIRED)
include_directories(${LIBS_PATH}/lua-intf)
include_directories(/usr/include/lua5.2)
aux_source_directory(${CMAKE_SOURCE_DIR}/src photobooth_SRCS)
#get_cmake_property(_variableNames VARIABLES)
#foreach (_variableName ${_variableNames})
# message(STATUS "${_variableName}=${${_variableName}}")
#endforeach()
qt5_wrap_ui(photobooth_UI_SRCS
${CMAKE_SOURCE_DIR}/src/mainwindow.ui
${CMAKE_SOURCE_DIR}/src/parameterslider.ui
)
qt5_add_resources(photobooth_QRC_SRCS photobooth.qrc)
add_executable(photobooth
${photobooth_SRCS}
${photobooth_UI_SRCS}
${photobooth_QRC_SRCS}
)
target_link_libraries(photobooth
${CHDKPTP_LIBRARY}
${LUA_LIBRARIES}
)
qt5_use_modules(photobooth Widgets)