-
Notifications
You must be signed in to change notification settings - Fork 9
/
CMakeLists.txt
32 lines (24 loc) · 786 Bytes
/
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
cmake_minimum_required(VERSION 3.6)
set(APP_NAME pbo-webcam)
# libendencies
# glfw
find_package(PkgConfig REQUIRED)
pkg_search_module(GLFW REQUIRED glfw3)
include_directories(${GLFW_INCLUDE_DIRS})
# flags
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -Wformat -g")
#set(CMAKE_BUILD_TYPE "Debug")
# source files
file(GLOB src "src/*.h" "src/*.cpp")
file(GLOB imgui "lib/imgui/*.h" "lib/imgui/*.cpp")
file(GLOB gl3w "lib/gl3w/GL/*.h" "lib/gl3w/GL/*.c")
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY bin)
# includes
include_directories(src lib/imgui lib/gl3w)
# APP
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/bin)
add_executable(${APP_NAME} ${src} ${imgui} ${gl3w})
target_link_libraries(
${APP_NAME}
${GLFW_LIBRARIES}
GL pthread dl)