-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
40 lines (31 loc) · 877 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
35
36
37
38
39
40
# Copyright 2023-present Contributors to the overlaytool project.
# SPDX-License-Identifier: BSD-3-Clause
# https://github.com/mikaelsundell/overlaytool
cmake_minimum_required(VERSION 3.23)
set( project_name "overlaytool" )
project( "${project_name} project" )
# modules
set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/modules" )
# imath
find_package( Imath REQUIRED )
find_package( OIIO REQUIRED )
# font
configure_file(
"${PROJECT_SOURCE_DIR}/fonts/Roboto.ttf"
"${CMAKE_BINARY_DIR}/Roboto.ttf"
COPYONLY
)
# package
add_executable( ${project_name} "overlaytool.cpp" )
set_property( TARGET ${project_name} PROPERTY CXX_STANDARD 14)
include_directories (
${IMATH_INCLUDE_DIRS}
${OIIO_INCLUDE_DIRS}
)
target_link_libraries( ${project_name}
${IMATH_LIBRARIES}
${OIIO_LIBRARIES}
)
install(TARGETS ${project_name}
RUNTIME DESTINATION bin
)