-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
24 lines (21 loc) · 872 Bytes
/
CMakeLists.txt
File metadata and controls
24 lines (21 loc) · 872 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
cmake_minimum_required(VERSION 3.0.0)
project(FastTranslucentShader)
# -----------------------------------------------------------------------------
# Required packages
# -----------------------------------------------------------------------------
if (WIN32)
set(QT5_ROOT "QT5-NOT_FOUND" CACHE PATH "")
if (NOT EXISTS "${QT5_ROOT}/lib/cmake")
message(FATAL_ERROR "[ERROR] Qt5 not found!!")
endif()
set(CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH} ${QT5_ROOT})
endif()
find_package(OpenCV REQUIRED)
find_package(Qt5Widgets REQUIRED)
find_package(Qt5OpenGL REQUIRED)
find_package(Qt5Xml REQUIRED)
find_package(OpenGL REQUIRED)
# -----------------------------------------------------------------------------
# Process source directory
# -----------------------------------------------------------------------------
add_subdirectory(sources)