changed: gcc8 base update
[opensg.git] / Source / Contrib / CgFXMaterial / OSGContribCgFX.Prepare.cmake
blob1deb04c05ae757f4f3be2122396c454ebefd0ff8
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)
11   OSG_CONFIGURE_CG()
13   OSG_ADD_OPT(CG_FOUND)
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}")
22 MESSAGE("")
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")
27   ENDIF()
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)
34 INSTALL(
35   FILES "${_CMAKE_CURR_LIST_DIR}/CMake/ConfigurePackages.OSGContribCgFX.cmake"
36   DESTINATION share/OpenSG/cmake)
37 #  COMPONENT development_configuration)