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

/src/nuke/CMakeLists.txt

http://github.com/imageworks/OpenColorIO
CMake | 138 lines | 96 code | 22 blank | 20 comment | 1 complexity | 737343d189eee1fe8250424b714fff22 MD5 | raw file
  1if(APPLE)
  2    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -undefined dynamic_lookup")
  3endif()
  4
  5include_directories(
  6    ${CMAKE_SOURCE_DIR}/export/
  7    ${CMAKE_BINARY_DIR}/export/
  8    ${Nuke_INCLUDE_DIR}
  9)
 10
 11###############################################################################
 12### NukeOCIOColorSpace ###
 13
 14add_library(NukeOCIOColorSpace MODULE
 15    OCIOColorSpace/OCIOColorSpace.cpp
 16)
 17target_link_libraries(NukeOCIOColorSpace
 18    OpenColorIO
 19    #${Nuke_LIBRARIES}
 20)
 21set_target_properties(NukeOCIOColorSpace
 22    PROPERTIES
 23    PREFIX ""
 24    OUTPUT_NAME "OCIOColorSpace"
 25)
 26
 27###############################################################################
 28### NukeOCIODisplay ###
 29
 30add_library(NukeOCIODisplay MODULE
 31    OCIODisplay/OCIODisplay.cpp
 32)
 33target_link_libraries(NukeOCIODisplay
 34    OpenColorIO
 35    #${Nuke_LIBRARIES}
 36)
 37set_target_properties(NukeOCIODisplay
 38    PROPERTIES
 39    PREFIX ""
 40    OUTPUT_NAME "OCIODisplay"
 41)
 42
 43###############################################################################
 44### NukeOCIOFileTransform ###
 45
 46add_library(NukeOCIOFileTransform MODULE
 47    OCIOFileTransform/OCIOFileTransform.cpp
 48)
 49target_link_libraries(NukeOCIOFileTransform
 50    OpenColorIO
 51    #${Nuke_LIBRARIES}
 52)
 53set_target_properties(NukeOCIOFileTransform
 54    PROPERTIES
 55    PREFIX ""
 56    OUTPUT_NAME "OCIOFileTransform"
 57)
 58
 59###############################################################################
 60### NukeOCIOLogConvert ###
 61
 62add_library(NukeOCIOLogConvert MODULE
 63    OCIOLogConvert/OCIOLogConvert.cpp
 64)
 65target_link_libraries(NukeOCIOLogConvert
 66    OpenColorIO
 67    #${Nuke_LIBRARIES}
 68)
 69set_target_properties(NukeOCIOLogConvert
 70    PROPERTIES
 71    PREFIX ""
 72    OUTPUT_NAME "OCIOLogConvert"
 73)
 74
 75###############################################################################
 76### NukeOCIOLookTransform ###
 77
 78add_library(NukeOCIOLookTransform MODULE
 79    OCIOLookTransform/OCIOLookTransform.cpp
 80)
 81target_link_libraries(NukeOCIOLookTransform
 82    OpenColorIO
 83    #${Nuke_LIBRARIES}
 84)
 85set_target_properties(NukeOCIOLookTransform
 86    PROPERTIES
 87    PREFIX ""
 88    OUTPUT_NAME "OCIOLookTransform"
 89)
 90
 91###############################################################################
 92### NukeOCIOCDLTransform ###
 93
 94add_library(NukeOCIOCDLTransform MODULE
 95    OCIOCDLTransform/OCIOCDLTransform.cpp
 96)
 97target_link_libraries(NukeOCIOCDLTransform
 98    OpenColorIO
 99    #${Nuke_LIBRARIES}
100)
101set_target_properties(NukeOCIOCDLTransform
102    PROPERTIES
103    PREFIX ""
104    OUTPUT_NAME "OCIOCDLTransform"
105)
106
107###############################################################################
108### Nuke Targets ###
109
110add_custom_target(Nuke
111    DEPENDS NukeOCIOColorSpace
112    DEPENDS NukeOCIODisplay
113    DEPENDS NukeOCIOFileTransform
114    DEPENDS NukeOCIOLogConvert
115    DEPENDS NukeOCIOCDLTransform
116)
117
118install(TARGETS NukeOCIOColorSpace
119        DESTINATION ${CMAKE_INSTALL_EXEC_PREFIX}/lib/nuke${Nuke_API_VERSION})
120
121install(TARGETS NukeOCIODisplay
122        DESTINATION ${CMAKE_INSTALL_EXEC_PREFIX}/lib/nuke${Nuke_API_VERSION})
123
124install(TARGETS NukeOCIOLogConvert
125        DESTINATION ${CMAKE_INSTALL_EXEC_PREFIX}/lib/nuke${Nuke_API_VERSION})
126
127install(TARGETS NukeOCIOFileTransform
128        DESTINATION ${CMAKE_INSTALL_EXEC_PREFIX}/lib/nuke${Nuke_API_VERSION})
129
130install(TARGETS NukeOCIOLookTransform
131        DESTINATION ${CMAKE_INSTALL_EXEC_PREFIX}/lib/nuke${Nuke_API_VERSION})
132
133install(TARGETS NukeOCIOCDLTransform
134        DESTINATION ${CMAKE_INSTALL_EXEC_PREFIX}/lib/nuke${Nuke_API_VERSION})
135
136install(DIRECTORY ${CMAKE_SOURCE_DIR}/share/nuke
137        DESTINATION ${CMAKE_INSTALL_PREFIX}/share/
138        PATTERN .svn EXCLUDE)