PageRenderTime 14ms CodeModel.GetById 11ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/src/apps/ocioconvert/CMakeLists.txt

http://github.com/imageworks/OpenColorIO
CMake | 40 lines | 30 code | 8 blank | 2 comment | 3 complexity | 523ea2e6cd0555f03c754e06e8de8245 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. GPU disabled for ocioconvert.")
 6else()
 7    add_compile_definitions(OCIO_GPU_ENABLED)
 8    set(OCIO_GL_LIB oglapphelpers)
 9endif()
10
11set(SOURCES
12    main.cpp
13)
14
15add_executable(ocioconvert ${SOURCES})
16
17if(NOT BUILD_SHARED_LIBS)
18    target_compile_definitions(ocioconvert
19        PRIVATE
20            OpenColorIO_SKIP_IMPORTS
21    )
22endif()
23
24set_target_properties(ocioconvert PROPERTIES 
25    COMPILE_FLAGS "${PLATFORM_COMPILE_FLAGS}")
26
27target_link_libraries(ocioconvert
28    PRIVATE
29        apputils
30        ilmbase::ilmbase
31        ${OCIO_GL_LIB}
32        oiiohelpers
33        OpenColorIO
34        OpenImageIO
35)
36
37install(TARGETS ocioconvert
38    RUNTIME DESTINATION bin
39)
40