summaryrefslogtreecommitdiff
path: root/src/apps/ociolutimage/CMakeLists.txt
blob: 86bc0e7e1027d5b13f17d7e6efd9a67396bd6467 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
if (OIIO_FOUND)
    include_directories(
        ${CMAKE_SOURCE_DIR}/export/
        ${CMAKE_BINARY_DIR}/export/
        ${CMAKE_SOURCE_DIR}/src/apps/share/
        ${OIIO_INCLUDES}
    )
    
    file(GLOB_RECURSE share_src_files "${CMAKE_SOURCE_DIR}/src/apps/share/*.cpp")
    
    add_executable(ociolutimage ${share_src_files} main.cpp)
    
    target_link_libraries(ociolutimage ${OIIO_LIBRARIES} OpenColorIO dl)
    
    install(TARGETS ociolutimage DESTINATION ${CMAKE_INSTALL_EXEC_PREFIX}/bin)
endif()