PageRenderTime 3ms CodeModel.GetById 1ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

/src/apps/ociobakelut/CMakeLists.txt

http://github.com/imageworks/OpenColorIO
CMake | 34 lines | 25 code | 7 blank | 2 comment | 2 complexity | 6fa6bcb1ad7129e803e6fbc557828ce3 MD5 | raw file
 1# SPDX-License-Identifier: BSD-3-Clause
 2# Copyright Contributors to the OpenColorIO Project.
 3
 4set(SOURCES
 5    main.cpp
 6    ocioicc.cpp
 7)
 8
 9add_executable(ociobakelut ${SOURCES})
10
11if(NOT BUILD_SHARED_LIBS)
12    target_compile_definitions(ociobakelut
13        PRIVATE
14        OpenColorIO_SKIP_IMPORTS
15    )
16endif()
17
18if(MSVC)
19    set(PLATFORM_COMPILE_FLAGS "${PLATFORM_COMPILE_FLAGS} /wd4996")
20endif()
21
22set_target_properties(ociobakelut PROPERTIES 
23    COMPILE_FLAGS "${PLATFORM_COMPILE_FLAGS}")
24
25target_link_libraries(ociobakelut 
26    PRIVATE 
27        apputils
28        lcms2::lcms2
29        OpenColorIO
30)
31
32install(TARGETS ociobakelut
33    RUNTIME DESTINATION bin
34)