PageRenderTime 22ms CodeModel.GetById 15ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 1ms

/src/apps/ociodisplay/CMakeLists.txt

http://github.com/imageworks/OpenColorIO
CMake | 43 lines | 35 code | 6 blank | 2 comment | 2 complexity | 8c3b2eafc6f858a3cbbb9cf33c634eed MD5 | raw file
 1# SPDX-License-Identifier: BSD-3-Clause
 2# Copyright Contributors to the OpenColorIO Project.
 3
 4if(NOT OCIO_GL_ENABLED)
 5    message(WARNING "GL component missing. Skipping ociodisplay.")
 6    return()
 7endif()
 8
 9set(SOURCES
10    main.cpp
11)
12
13add_executable(ociodisplay ${SOURCES})
14
15if(NOT BUILD_SHARED_LIBS)
16    target_compile_definitions(ociodisplay
17        PRIVATE
18            OpenColorIO_SKIP_IMPORTS
19    )
20endif()
21
22set_target_properties(ociodisplay PROPERTIES 
23	COMPILE_FLAGS "${PLATFORM_COMPILE_FLAGS}")
24
25target_include_directories(ociodisplay 
26	SYSTEM
27	PRIVATE
28		${GLEW_INCLUDE_DIRS}
29		${GLUT_INCLUDE_DIR}
30		${OPENGL_INCLUDE_DIR}
31)
32target_link_libraries(ociodisplay
33	PRIVATE 
34		${GLEW_LIBRARIES}
35		${GLUT_LIBRARIES}
36        oglapphelpers
37		OpenColorIO
38		${OPENGL_LIBRARIES}
39		OpenImageIO
40)
41install(TARGETS ociodisplay
42    RUNTIME DESTINATION bin
43)