forked from gamekit-developers/gamekit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
74 lines (66 loc) · 2.09 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#-------------------------------------------------------------------
# This file is part of the CMake build system for OGRE
# (Object-oriented Graphics Rendering Engine)
# For the latest info, see http://www.ogre3d.org/
#
# The contents of this file are placed in the public domain. Feel
# free to make use of it in any way you like.
#-------------------------------------------------------------------
#############################################################
# Install useful CMake modules.
# These are necessary to compile the samples from the install
# directory, but can also be used for custom projects.
#############################################################
if(WIN32 OR APPLE)
set(OGRE_CMAKE_DIR "CMake")
else()
set(OGRE_CMAKE_DIR "${OGRE_LIB_DIRECTORY}/OGRE/cmake")
endif()
set(INST_FILES
Packages/FindOIS.cmake
Packages/FindOGRE.cmake
Utils/FindPkgMacros.cmake
Utils/MacroLogFeature.cmake
Utils/PreprocessorUtils.cmake
Utils/PrecompiledHeader.cmake
Utils/OgreAddTargets.cmake
Utils/OgreConfigTargets.cmake
Utils/OgreGetVersion.cmake
Utils/OgreFindFrameworks.cmake
)
if (OGRE_CONFIG_THREAD_PROVIDER STREQUAL "poco")
set(INST_FILES ${INST_FILES} Packages/FindPOCO.cmake)
endif ()
if (OGRE_CONFIG_THREAD_PROVIDER STREQUAL "tbb")
set(INST_FILES ${INST_FILES} Packages/FindTBB.cmake)
endif ()
set(STATIC_INST_FILES
Packages/FindCg.cmake
Packages/FindDirectX.cmake
Packages/FindFreeImage.cmake
Packages/FindFreetype.cmake
Packages/FindOpenGLES.cmake
Packages/FindOpenGLES2.cmake
Packages/FindZLIB.cmake
Packages/FindZZip.cmake
Packages/FindSoftimage.cmake
)
if (WIN32)
set(INST_FILES ${INST_FILES}
Templates/VisualStudioUserFile.vcproj.user.in
Templates/VisualStudioUserFile.vcxproj.user.in
)
endif ()
if (APPLE)
set(INST_FILES ${INST_FILES}
Packages/FindCg.cmake
)
set(STATIC_INST_FILES ${STATIC_INST_FILES}
Packages/FindGLSLOptimizer.cmake
Packages/FindHLSL2GLSL.cmake
)
endif ()
install(FILES ${INST_FILES} DESTINATION ${OGRE_CMAKE_DIR})
if (OGRE_STATIC)
install(FILES ${STATIC_INST_FILES} DESTINATION ${OGRE_CMAKE_DIR})
endif ()