source: osgVisual/CMakeLists.txt @ 103

Last change on this file since 103 was 103, checked in by Torben Dannhauer, 14 years ago
File size: 17.2 KB
Line 
1#################################################################################################
2# This file allows to configure osgVisual with CMAKE to generate native build solutions.                #
3#                                                                                                                                                                                               #
4# Specify the following environment variables to use osgVisual and this CMAKE script:                   #
5#       * OSG_ROOT: Path to your 32 bit (x86) OSG, e.g. D:\OSG\OpenSceneGraph-2.9.8_x86                         #
6#       * OSG_ROOT_X64: Path to your 64 bit (x64) OSG, e.g. D:\OSG\OpenSceneGraph-2.9.8_x64                     #
7#       * OSG: Path to your 32 bit (x86) OSG and 3rdParty binary folder,                                                        #
8#                e.g. %OSG_ROOT%\bin;D:\OSG\3rdParty\bin\x86                                                                                    #
9#       * OSG_X64: Path to your 64 bit (x64) OSG and 3rdParty binary folder,                                            #
10#                e.g. %OSG_ROOT_X64%\bin;D:\OSG\3rdParty\bin\x64                                                                                #
11#       * PATH: Extend with %OSG% or %OSG_X64% to use OSG and osgVisual from command line,                      #
12#                e.g. PATH=%PATH%;%OSG%                                                                                                                                 #
13#                                                                                                                                                                                               #
14#       NOTE:   On Visual Studio and x64 Arch, CMAKE uses the project settings to specify the           #
15#                       correct x64 OSG path, so you can use osg as 32 bit in your system path.                         #
16#                                                                                                                                                                                               #
17#                                                                                                                                                                                               #
18#################################################################################################
19
20cmake_minimum_required(VERSION 2.8)
21
22
23PROJECT(osgVisual)
24#SET(CMAKE_MODULE_PATH "${osgVisual_SOURCE_DIR}/../CMakeModules;${CMAKE_MODULE_PATH}")
25
26# Check Architecture
27IF( CMAKE_SIZEOF_VOID_P EQUAL 4 )
28    MESSAGE( STATUS "32 bit architecture detected" )
29    SET(DESTINATION_ARCH "x86")
30ENDIF()
31IF( CMAKE_SIZEOF_VOID_P EQUAL 8 )
32    MESSAGE( STATUS "64 bit architecture detected" )
33    SET(DESTINATION_ARCH "x64")
34ENDIF()
35
36
37# Get requiered packages
38IF(DESTINATION_ARCH STREQUAL "x64")
39        SET(OSG_ROOT_BKP $ENV{OSG_ROOT})        # BACKUP old OSG_ROOT
40        SET(ENV{OSG_ROOT} $ENV{OSG_ROOT_X64})   # Replace OSGROOT with OSG_ROOT_X64 to force CMAKE to find the correct OSG version (64 bit)
41ENDIF ()
42
43SET(OpenSceneGraph_MARK_AS_ADVANCED ON)
44FIND_PACKAGE(OpenSceneGraph 2.9.8 REQUIRED osgViewer OpenThreads osgDB osgTerrain osgGA osgText osgSim osgUtil)
45FIND_PACKAGE(OpenGL REQUIRED)
46IF(UNIX)
47        FIND_PACKAGE(PTHREAD REQUIRED)
48ENDIF(UNIX)
49
50
51
52
53IF(DESTINATION_ARCH STREQUAL "x64")
54        SET(ENV{OSG_ROOT} ${OSG_ROOT_BKP})      # Restore old OSG_ROOT
55        UNSET(OSG_ROOT_BKP)                                     # Delete backup
56ENDIF ()
57
58
59
60# Module sky-silverlining - At the moment only for Win32, will be opened to Unix ASAP
61# OPTION( OPTION_VAR "description string" [initial value] )
62IF ( WIN32 )
63       
64        SET(USE_SKY_SILVERLINING ON CACHE BOOL "Enable to use Sundog-soft's Silverlining SDK for sky & weather")
65        IF(USE_SKY_SILVERLINING )
66                SET(SOURCES
67                        ${SOURCES}
68                        include/sky_Silverlining/skySilverLining_AtmosphereReference.h
69                        include/sky_Silverlining/skySilverLining_cloudLayerSlot.h
70                        include/sky_Silverlining/skySilverLining_cloudsDrawable.h
71                        include/sky_Silverlining/skySilverLining_ProjectionMatrixCallback.h
72                        include/sky_Silverlining/skySilverLining_skyDrawable.h
73                        include/sky_Silverlining/visual_skySilverLining.h
74                        src/sky_Silverlining/skySilverLining_cloudsDrawable.cpp
75                        src/sky_Silverlining/skySilverLining_skyDrawable.cpp
76                        src/sky_Silverlining/visual_skySilverLining.cpp                 
77                )
78               
79                IF (DESTINATION_ARCH STREQUAL "x86")
80                        SET(SILVERLINING_ARCH "win32")
81                ELSEIF ( DESTINATION_ARCH STREQUAL "x64" )
82                        SET(SILVERLINING_ARCH "x64")
83                ENDIF ()
84                SET(SILVERLINING_LIBRARY_RELEASE $ENV{SILVERLINING_PATH}\\lib\\vc9\\${SILVERLINING_ARCH}\\SilverLining-MT-DLL.lib CACHE FILEPATH "Select the release library of Sundog-Soft's Silverlining SDK to link against." )
85                SET(SILVERLINING_LIBRARY_DEBUG $ENV{SILVERLINING_PATH}\\lib\\vc9\\${SILVERLINING_ARCH}\\SilverLining-MTD-DLL.lib CACHE FILEPATH "Select the debug library of Sundog-Soft's Silverlining SDK to link against." )
86                SET(SILVERLINING_INCLUDE_DIR "$ENV{SILVERLINING_PATH}\\Public Headers" CACHE PATH "Enter the path to the the public Include directory of Sundog-Soft's Silverlining SDK" )
87                SET(SILVERLINING_LICENSEE "Your user name" CACHE STRING "Enter your Silverlining licensee name. If you license available, osgVisual will work with silverlining as 5 minute demo with the default value." )
88                SET(SILVERLINING_LICENSE "Your license code" CACHE STRING "Enter your Silverlining license key. If you license available, osgVisual will work with silverlining as 5 minute demo with the default value." )
89                INCLUDE_DIRECTORIES(${SILVERLINING_INCLUDE_DIR} include/sky_Silverlining)
90                ADD_DEFINITIONS( "-DUSE_SKY_SILVERLINING" )
91                ADD_DEFINITIONS( "-DSILVERLINING_LICENSEE=\"${SILVERLINING_LICENSEE}\"" )
92                ADD_DEFINITIONS( "-DSILVERLINING_LICENSE=\"${SILVERLINING_LICENSE}\"" )
93               
94        ELSE(USE_SKY_SILVERLINING)
95                UNSET(SILVERLINING_LIBRARY_RELEASE CACHE)
96                UNSET(SILVERLINING_LIBRARY_DEBUG CACHE)
97                UNSET(SILVERLINING_INCLUDE_DIR CACHE)
98                UNSET(SILVERLINING_LICENSEE)
99                UNSET(SILVERLINING_LICENSE)
100        ENDIF(USE_SKY_SILVERLINING)
101ENDIF(WIN32)
102IF(UNIX)
103       
104        SET(USE_SKY_SILVERLINING ON CACHE BOOL "Enable to use Sundog-soft's Silverlining SDK for sky & weather")
105        IF(USE_SKY_SILVERLINING )
106                SET(SOURCES
107                        ${SOURCES}
108                        include/sky_Silverlining/skySilverLining_AtmosphereReference.h
109                        include/sky_Silverlining/skySilverLining_cloudLayerSlot.h
110                        include/sky_Silverlining/skySilverLining_cloudsDrawable.h
111                        include/sky_Silverlining/skySilverLining_ProjectionMatrixCallback.h
112                        include/sky_Silverlining/skySilverLining_skyDrawable.h
113                        include/sky_Silverlining/visual_skySilverLining.h
114                        src/sky_Silverlining/skySilverLining_cloudsDrawable.cpp
115                        src/sky_Silverlining/skySilverLining_skyDrawable.cpp
116                        src/sky_Silverlining/visual_skySilverLining.cpp                 
117                )
118               
119                IF (DESTINATION_ARCH STREQUAL "x86")
120                        SET(SILVERLINING_ARCH "win32")
121                ELSEIF ( DESTINATION_ARCH STREQUAL "x64" )
122                        SET(SILVERLINING_ARCH "x64")
123                ENDIF ()
124                SET(SILVERLINING_LIBRARY_RELEASE $ENV{SILVERLINING_PATH}\\lib\\vc9\\${SILVERLINING_ARCH}\\SilverLining-MT-DLL.lib CACHE FILEPATH "Select the release library of Sundog-Soft's Silverlining SDK to link against." )
125                SET(SILVERLINING_LIBRARY_DEBUG $ENV{SILVERLINING_PATH}\\lib\\vc9\\${SILVERLINING_ARCH}\\SilverLining-MTD-DLL.lib CACHE FILEPATH "Select the debug library of Sundog-Soft's Silverlining SDK to link against." )
126                SET(SILVERLINING_INCLUDE_DIR "$ENV{SILVERLINING_PATH}\\Public Headers" CACHE PATH "Enter the path to the the public Include directory of Sundog-Soft's Silverlining SDK" )
127                SET(SILVERLINING_LICENSEE "Your user name" CACHE STRING "Enter your Silverlining licensee name. If you license available, osgVisual will work with silverlining as 5 minute demo with the default value." )
128                SET(SILVERLINING_LICENSE "Your license code" CACHE STRING "Enter your Silverlining license key. If you license available, osgVisual will work with silverlining as 5 minute demo with the default value." )
129                INCLUDE_DIRECTORIES(${SILVERLINING_INCLUDE_DIR} "include/sky_Silverlining" ${PTHREAD_INCLUDE_DIR} )
130                ADD_DEFINITIONS( "-DUSE_SKY_SILVERLINING" )
131                ADD_DEFINITIONS( "-DSILVERLINING_LICENSEE=\"${SILVERLINING_LICENSEE}\"" )
132                ADD_DEFINITIONS( "-DSILVERLINING_LICENSE=\"${SILVERLINING_LICENSE}\"" )
133               
134        ELSE(USE_SKY_SILVERLINING)
135                UNSET(SILVERLINING_LIBRARY_RELEASE CACHE)
136                UNSET(SILVERLINING_LIBRARY_DEBUG CACHE)
137                UNSET(SILVERLINING_INCLUDE_DIR CACHE)
138                UNSET(SILVERLINING_LICENSEE)
139                UNSET(SILVERLINING_LICENSE)
140        ENDIF(USE_SKY_SILVERLINING)
141ENDIF()
142
143# Module distortion
144SET(USE_DISTORTION OFF CACHE BOOL "Enable to use distortion with Projection Designer's distortion maps")
145IF(USE_DISTORTION)
146        SET(SOURCES
147                ${SOURCES}
148                include/distortion/visual_distortion.h
149                src/distortion/visual_distortion.cpp
150        )
151        INCLUDE_DIRECTORIES(include/distortion)
152        ADD_DEFINITIONS( "-DUSE_DISTORTION" )
153ENDIF(USE_DISTORTION)
154
155
156# Module Vista2D - Only available under Win32
157if( WIN32 )
158        SET(USE_VISTA2D OFF CACHE BOOL "Enable to use Vista2D by Wetzel Technology")
159        IF( USE_VISTA2D )
160                INCLUDE_DIRECTORIES( include/vista2D )
161                SET(SOURCES
162                        ${SOURCES}
163                        include/vista2D/visual_vista2D.h
164                        src/vista2D/visual_vista2D.cpp 
165                )
166                SET(VISTA2D_INCLUDE_DIR . CACHE PATH "Select the INCLUDE directory path for Vista2D by Wetzel Technology." )
167                SET(VISTA2D_LIBRARY_DEBUG . CACHE FILEPATH "Select debug LIBRARY path for linking against Vista2D by Wetzel Technology." )
168                SET(VISTA2D_LIBRARY_RELEASE . CACHE FILEPATH "Select release LIBRARY path for linking against Vista2D by Wetzel Technology." )
169                INCLUDE_DIRECTORIES(${VISTA2D_INCLUDE_DIR})
170                ADD_DEFINITIONS( "-DUSE_VISTA2D" )
171        ELSE(USE_VISTA2D)
172                UNSET(VISTA2D_INCLUDE_DIR CACHE)
173                UNSET(VISTA2D_LIBRARY_DEBUG CACHE)
174                UNSET(VISTA2D_LIBRARY_RELEASE CACHE)
175        ENDIF(USE_VISTA2D)
176ENDIF(WIN32)
177
178
179# Module Spacenavigator manipulator - ONLY under WIN32
180if( WIN32 )
181        # No header or linking required, because WIN32 COM interface used.
182        SET(USE_SPACEMOUSE ON CACHE BOOL "Enable to use camera manipulator based on Spacenavigator by 3DConnexion")
183        IF( USE_SPACEMOUSE )
184                SET(SOURCES
185                        ${SOURCES}
186                        include/manip_Spacemouse/manip_spaceMouse.h
187                        include/manip_Spacemouse/manip_freeSpaceMouse.h
188                        include/manip_Spacemouse/manip_nodeTrackerSpaceMouse.h
189                        src/manip_Spacemouse/manip_spaceMouse.cpp
190                        src/manip_Spacemouse/manip_freeSpaceMouse.cpp
191                        src/manip_Spacemouse/manip_nodeTrackerSpaceMouse.cpp
192                )
193                INCLUDE_DIRECTORIES(include/manip_Spacemouse)
194                ADD_DEFINITIONS( "-DUSE_SPACENAVIGATOR" )
195        ENDIF(USE_SPACEMOUSE)
196ENDIF(WIN32)
197
198
199# Module cluster
200SET(USE_CLUSTER_ASIO_TCP_IOSTREAM OFF CACHE BOOL "Enable to use the Boost ASIO TCP iostream implementation for the cluster interface")
201SET(USE_CLUSTER_ENET ON CACHE BOOL "Enable to use the ENet reliable UDP library implementation for the cluster interface")
202IF( USE_CLUSTER_ASIO_TCP_IOSTREAM )
203                SET(SOURCES
204                        ${SOURCES}
205                        include/cluster/dataIO_cluster.h
206                        include/cluster/dataIO_clusterAsioTcpIostream.h
207                        src/cluster/dataIO_clusterAsioTcpIostream.cpp
208                )
209                ADD_DEFINITIONS( "-DUSE_CLUSTER_ASIO_TCP_IOSTREAM" )
210                ADD_DEFINITIONS( "-D_WIN32_WINNT=0x0501" )
211                SET(BOOST_LIBRARY_PATH "../../3rdParty_x86_x64/lib/${DESTINATION_ARCH}/" CACHE PATH "Select the library folder of Boost libraries to link against." )
212                SET(BOOST_INCLUDE_DIR "../../3rdParty_x86_x64/include/boost-1.43.0/" CACHE PATH "Enter the path to the the include directory of Boost" )
213                INCLUDE_DIRECTORIES(${BOOST_INCLUDE_DIR})
214                LINK_DIRECTORIES(${BOOST_LIBRARY_PATH})
215ELSE()
216                UNSET(BOOST_LIBRARY_PATH CACHE)
217                UNSET(BOOST_ASIO_INCLUDE_DIR CACHE)     
218ENDIF()
219
220IF( USE_CLUSTER_ENET )
221                SET(SOURCES
222                        ${SOURCES}
223                        include/cluster/dataIO_cluster.h
224                        include/cluster/dataIO_clusterENet.h
225                        src/cluster/dataIO_clusterENet.cpp
226                        include/cluster/dataIO_clusterENet_implementation.h
227                        src/cluster/dataIO_clusterENet_implementation.cpp
228                        src/cluster/enet/callbacks.c
229                        src/cluster/enet/compress.c
230                        src/cluster/enet/host.c
231                        src/cluster/enet/list.c
232                        src/cluster/enet/packet.c
233                        src/cluster/enet/peer.c
234                        src/cluster/enet/protocol.c
235                        src/cluster/enet/unix.c
236                        src/cluster/enet/win32.c
237                        include/cluster/enet/callbacks.h
238                        include/cluster/enet/enet.h
239                        include/cluster/enet/list.h
240                        include/cluster/enet/protocol.h
241                        include/cluster/enet/time.h
242                        include/cluster/enet/types.h
243                        include/cluster/enet/unix.h
244                        include/cluster/enet/utility.h
245                        include/cluster/enet/win32.h
246                )
247                ADD_DEFINITIONS( "-DUSE_CLUSTER_ENET" )
248               
249ENDIF()
250
251IF(NOT USE_CLUSTER_ASIO_TCP_IOSTREAM AND NOT USE_CLUSTER_ENET)
252                SET(SOURCES
253                        ${SOURCES}
254                        include/cluster/dataIO_cluster.h
255                        include/cluster/dataIO_clusterDummy.h
256                        src/cluster/dataIO_clusterDummy.cpp
257                )
258                ADD_DEFINITIONS( "-DUSE_CLUSTER_DUMMY" )
259ENDIF()
260
261
262# Module extLink
263SET(SOURCES
264        ${SOURCES}
265        include/extLink/dataIO_extLink.h
266        include/extLink/manip_extLink.h
267        src/extLink/manip_extLink.cpp
268)
269IF ( WIN32 )
270        SET(USE_EXTLINK_VCL ON CACHE BOOL "Enable to use the VCL Implementation for the externalLink interface")
271        IF( USE_EXTLINK_VCL )
272                SET(EXTLINK_VCL_INCLUDE_DIR ../VCL_1.0.3.4/source/include/VCL CACHE PATH "Select the INCLUDE directory path for extLink VCL Implementation." )
273                SET(SOURCES
274                        ${SOURCES}
275                        include/extLink/dataIO_extLinkVCL.h
276                        src/extLink/dataIO_extLinkVCL.cpp
277                )
278                INCLUDE_DIRECTORIES(${EXTLINK_VCL_INCLUDE_DIR})
279                ADD_DEFINITIONS( "-DUSE_EXTLINK_VCL" )
280                #Linking: VCL uses #pragma to link, no need for linking configuration in CMAKE
281        ELSE(USE_EXTLINK_VCL)
282                SET(SOURCES
283                        ${SOURCES}
284                        include/extLink/dataIO_extLinkDummy.h
285                        src/extLink/dataIO_extLinkDummy.cpp
286                )
287                UNSET(EXTLINK_VCL_INCLUDE_DIR CACHE)
288                ADD_DEFINITIONS( "-DUSE_EXTLINK_DUMMY" )
289        ENDIF(USE_EXTLINK_VCL)
290ELSE(WIN32)
291        UNSET(EXTLINK_VCL_INCLUDE_DIR CACHE)
292        SET(SOURCES
293                ${SOURCES}
294                include/extLink/dataIO_extLinkDummy.h
295                src/extLink/dataIO_extLinkDummy.cpp
296        )
297        ADD_DEFINITIONS( "-DUSE_EXTLINK_DUMMY" )
298ENDIF(WIN32)
299
300
301
302# Set core sources
303SET(SOURCES
304        ${SOURCES}
305        # Core
306        include/core/visual_core.h
307        src/core/visual_core.cpp
308        src/core/osgVisual.cpp
309        # Memory Leak debugging
310        include/core/leakDetection.h
311        # Util
312        include/util/visual_util.h
313        src/util/visual_util.cpp
314        # Draw 2D
315        include/draw2D/visual_draw2D.h
316        src/draw2D/visual_draw2D.cpp
317        # Debug HUD
318        include/draw2D/visual_debug_hud.h
319        src/draw2D/visual_debug_hud.cpp
320        # Example HUD
321        include/draw2D/visual_hud.h
322        src/draw2D/visual_hud.cpp
323        # Draw 3D
324        include/draw3D/visual_draw3D.h
325        src/draw3D/visual_draw3D.cpp
326        # Object Mounted Manipulator
327        include/manip_ObjectMounted/manip_objectMounted.h
328        src/manip_ObjectMounted/manip_objectMounted.cpp
329        # Objects
330        include/object/visual_object.h
331        include/object/object_updater.h
332        src/object/visual_object.cpp
333        src/object/object_updater.cpp
334        # DataIO
335        include/dataIO/visual_dataIO.h
336        include/dataIO/dataIO_transportContainer.h
337        include/dataIO/dataIO_slot.h
338        include/dataIO/dataIO_executer.h
339        src/dataIO/visual_dataIO.cpp
340        src/dataIO/dataIO_transportContainer.cpp
341        src/dataIO/dataIO_slot.cpp
342        src/dataIO/dataIO_executer.cpp
343)
344
345INCLUDE_DIRECTORIES(include/core include/util include/draw2D include/draw3D include/object include/manip_ObjectMounted)
346INCLUDE_DIRECTORIES(include/dataIO include/cluster include/extLink ${OPENSCENEGRAPH_INCLUDE_DIRS} .)
347
348
349# Executable Output
350SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin)
351ADD_EXECUTABLE(osgVisual ${SOURCES})
352
353
354# Linking
355TARGET_LINK_LIBRARIES(osgVisual ${OPENSCENEGRAPH_LIBRARIES} ${OPENGL_LIBRARIES})
356
357
358IF(USE_SKY_SILVERLINING )
359        IF(WIN32)
360                TARGET_LINK_LIBRARIES(osgVisual "winmm.lib")
361        ENDIF(WIN32)
362        IF(UNIX)
363                TARGET_LINK_LIBRARIES(osgVisual ${PTHREAD_LIBRARIES})
364        ENDIF(UNIX)
365        TARGET_LINK_LIBRARIES(osgVisual debug ${SILVERLINING_LIBRARY_DEBUG} optimized ${SILVERLINING_LIBRARY_RELEASE})
366ENDIF(USE_SKY_SILVERLINING)
367               
368IF(USE_VISTA2D)
369        TARGET_LINK_LIBRARIES(osgVisual  debug ${VISTA2D_LIBRARY_DEBUG} optimized ${VISTA2D_LIBRARY_RELEASE})
370ENDIF(USE_VISTA2D)
371
372IF(USE_CLUSTER_ENET)
373        TARGET_LINK_LIBRARIES(osgVisual "winmm.lib" "ws2_32.lib" )
374ENDIF(USE_CLUSTER_ENET)
375
376# CMAKE Fix for VS to not prepend build type to path.
377SET_TARGET_PROPERTIES(osgVisual PROPERTIES PREFIX "../")
378SET_TARGET_PROPERTIES( osgVisual PROPERTIES DEBUG_POSTFIX d )
379
380
381# Generating vcproj file, if MSVC to preset debugging parameter  - based on http://stackoverflow.com/questions/1005901/how-to-set-path-environment-variable-using-cmake-and-visual-studio-to-run-test
382IF (MSVC)
383    # Set up a default .user file that contains the debugging setup
384    ## Find user and system name
385        SET(SYSTEM_NAME $ENV{USERDOMAIN} CACHE STRING "Build System Name")
386        SET(USER_NAME $ENV{USERNAME} CACHE STRING "Build System UserName")
387        SET(USERFILE_COMMAND_DEBUG "$(TargetPath)" CACHE STRING "Command to execute on debugging (VS Project settings)" )
388        SET(USERFILE_WORKING_DIRECTORY_DEBUG "bin" CACHE STRING "Working directory on debugging (VS Project settings)" )
389        SET(USERFILE_COMMAND_ARGUMENTS_DEBUG "-C center --window 100 100 800 600 -m D:/OpenSceneGraph/VPB-Testdatensatz/DB_Small/database.ive -p salzburg.path" CACHE STRING "Command arguments (VS Project settings)" )
390        SET(USERFILE_REMOTE_MACHINE_DEBUG ${USER_NAME} CACHE STRING "Remote Debugging Machine (VS Project settings)")
391        IF (DESTINATION_ARCH STREQUAL "x64")
392                SET(USERFILE_ENVIRONMENT "PATH=%OSG_X64%;%PATH%" CACHE STRING "Environment Variables that VS should merge on thy fly with system environment to run osgVisual (VS Project settings)")
393        ENDIF ()
394
395
396    # Only do this if one doesn't already exist
397    SET (USER_FILE ${PROJECT_NAME}.vcproj.${SYSTEM_NAME}.${USER_NAME}.user)
398    IF (NOT EXISTS "${USER_FILE}")
399        message (STATUS "Creating ${USER_FILE} with default debug settings")
400        # These are the configuration variables
401        IF (CMAKE_GENERATOR MATCHES "Win64")
402            SET (USERFILE_PLATFORM "x64")
403        ELSE ()
404            SET (USERFILE_PLATFORM "Win32")
405        ENDIF ()
406
407                # Configure the template file
408                # MSC_VER 1300: MSC 13.0, VC 7.0, VS 2002
409                # MSC_VER 1310: MSC 13.1, VC 7.1, VS 2003
410                # MSC_VER 1400: MSC 14.0, VC 8.0, VS 2005
411                # MSC_VER 1500: MSC 15.0, VC 9.0, VS 2008
412                # MSC_VER 1600: MSC ??.0, VC 10.0, VS 2010
413                IF (MSVC_VERSION EQUAL 1400)
414                        CONFIGURE_FILE(VC80.vcproj.user.template ${USER_FILE} @ONLY)
415                ENDIF()
416                IF (MSVC_VERSION EQUAL 1500)
417                        CONFIGURE_FILE(VC90.vcproj.user.template ${USER_FILE} @ONLY)
418                ENDIF()         
419        ELSE()
420                message (STATUS "Userfile ${USER_FILE} already exist: Skipping")
421    ENDIF()
422ENDIF()
423
424
Note: See TracBrowser for help on using the repository browser.