PageRenderTime 32ms CodeModel.GetById 25ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

/src/apps/ociocheck/CMakeLists.txt

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