-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
34 lines (27 loc) · 888 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
31
32
33
34
# CMake for PhyRay
# @author: Methusael Murmu
cmake_minimum_required(VERSION 3.2 FATAL_ERROR)
set(PROJECT_NAME PhyRay)
project(${PROJECT_NAME} VERSION 0.1 LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
# Suppress deprecated warnings
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated -O2")
add_definitions(-DPHYRAY_OPTIMIZE)
# Add OpenEXR
find_package(PkgConfig REQUIRED)
pkg_search_module(OPENEXR REQUIRED OpenEXR)
pkg_search_module(ILMBASE REQUIRED IlmBase)
# Add Qt
# find_package(Qt5Core)
# find_package(Qt5Widgets)
# PhyRay
enable_testing()
add_subdirectory(phyray_lib)
add_subdirectory(phyray_app)
target_include_directories(phyrapp PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/phyray_app/include>
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/phyray_lib/include>
PRIVATE phyray_app/src
)