@@ -201,9 +201,10 @@ IF (PEDANTIC)
201
201
ENDIF (MSVC )
202
202
ENDIF (PEDANTIC )
203
203
204
- IF (CMAKE_BUILD_TYPE MATCHES Debug )
204
+ IF (CMAKE_BUILD_TYPE MATCHES Debug OR CMAKE_CONFIGURATION_TYPE MATCHES RelWithDebInfo )
205
+ MESSAGE ("-- Debug output enabled" )
205
206
ADD_DEFINITIONS (-DQGISDEBUG=1 )
206
- ENDIF (CMAKE_BUILD_TYPE MATCHES Debug )
207
+ ENDIF (CMAKE_BUILD_TYPE MATCHES Debug OR CMAKE_CONFIGURATION_TYPE MATCHES RelWithDebInfo )
207
208
208
209
#############################################################
209
210
# platform specific stuff
@@ -215,18 +216,10 @@ IF (WIN32)
215
216
SET (DEFAULT_INCLUDE_SUBDIR include )
216
217
217
218
IF (MSVC )
218
- # Python parts need to be build with nmake not vcexpress
219
- # if you dont add this clause, extra blank msvc projects
220
- # will pop up mid way through the build process and block
221
- # the build, plus the python bindings wont build correctly
222
- SET (CMAKE_MAKE_PROGRAM nmake )
223
219
SET (DEFAULT_BIN_SUBDIR bin )
224
220
# put all the build products into a single directory
225
221
# under build (doesnt affect install target) to make for
226
222
# easier debugging.
227
- # SET(OUTPUT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/bin)
228
- # SET(EXECUTABLE_OUTPUT_PATH ${OUTPUT_DIR})
229
- # SET(LIBRARY_OUTPUT_PATH ${OUTPUT_DIR})
230
223
#tell msvc compiler to use main instead of winmain as the
231
224
#application entry point
232
225
#SET(QT_USE_QTMAIN TRUE)
@@ -236,18 +229,17 @@ IF (WIN32)
236
229
# Turn off deprecation warnings
237
230
ADD_DEFINITIONS (-D_CRT_SECURE_NO_WARNINGS )
238
231
ADD_DEFINITIONS (-D_CRT_NONSTDC_NO_WARNINGS )
239
- # Some file access stuff not defined in native win32
240
- # environment
241
- ADD_DEFINITIONS (-DF_OK=0 )
242
- ADD_DEFINITIONS (-DX_OK=1 )
243
- ADD_DEFINITIONS (-DW_OK=2 )
244
- ADD_DEFINITIONS (-DR_OK=4 )
245
232
246
- ADD_DEFINITIONS (-DQGISDEBUG=1 )
247
-
248
- INSTALL (DIRECTORY ${CMAKE_SOURCE_DIR} /win_build/vcdeps/. DESTINATION . )
233
+ IF (CMAKE_BUILD_TYPE MATCHES Debug OR CMAKE_CONFIGURATION_TYPE MATCHES RelWithDebInfo )
234
+ MESSAGE ("-- Generating browse files" )
235
+ ADD_DEFINITIONS ( /FR )
236
+ ENDIF (CMAKE_BUILD_TYPE MATCHES Debug OR CMAKE_CONFIGURATION_TYPE MATCHES RelWithDebInfo )
237
+
238
+ IF (INSTALL_DEPS )
239
+ INSTALL (DIRECTORY ${INSTALL_DEPS} DESTINATION . )
240
+ ENDIF (INSTALL_DEPS )
249
241
ELSE (MSVC )
250
- SET (DEFAULT_BIN_SUBDIR . )
242
+ SET (DEFAULT_BIN_SUBDIR . )
251
243
ENDIF (MSVC )
252
244
ELSE (WIN32 )
253
245
0 commit comments