1 MESSAGE(STATUS "Prepare OSGContribCgFX")
3 GET_FILENAME_COMPONENT(_CMAKE_CURR_LIST_DIR ${CMAKE_CURRENT_LIST_FILE} PATH)
5 SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${_CMAKE_CURR_LIST_DIR}/CMake")
7 INCLUDE(ConfigurePackages.OSGContribCgFX)
10 IF(NOT OSG_BUILD_DEPENDEND)
14 OSG_ADD_OPT(CG_LIBRARIES_FOUND)
15 OSG_ADD_OPT(CG_LIBRARIES)
16 OSG_ADD_OPT(CG_INCLUDE_DIR)
17 ENDIF(NOT OSG_BUILD_DEPENDEND)
19 LIST(APPEND OSG_ADDITIONAL_CONFIGURE_LINES "#cmakedefine OSG_WITH_CG 1")
21 MESSAGE(" with Cg : ${OSG_WITH_CG}")
24 IF(WIN32 AND OSG_WITH_CG)
25 IF(EXISTS "${CG_INCLUDE_DIR}/GL")
26 MESSAGE(SEND_ERROR "Cg include dir contains GL subdir, this must be renamed prior to generation")
28 ENDIF(WIN32 AND OSG_WITH_CG)
30 INSTALL(FILES "${_CMAKE_CURR_LIST_DIR}/CMake/FindCg.cmake"
31 DESTINATION share/OpenSG/cmake)
32 # COMPONENT development_configuration)
35 FILES "${_CMAKE_CURR_LIST_DIR}/CMake/ConfigurePackages.OSGContribCgFX.cmake"
36 DESTINATION share/OpenSG/cmake)
37 # COMPONENT development_configuration)