Skip to content

Commit abfe0f4

Browse files
authored
Merge pull request #123 from STORM-IRIT/fix_122
[cmake] fix for #122
2 parents abe4662 + 6ade558 commit abfe0f4

File tree

4 files changed

+22
-0
lines changed

4 files changed

+22
-0
lines changed

apps/ExtPointBinding/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,7 @@ set(Demo_ExtPointBinding_SRC
1212
add_executable(${PROJECT_NAME} ${Demo_ExtPointBinding_SRC})
1313
target_link_libraries(${PROJECT_NAME} gr::utils gr::accel gr::algo gr::io ${OpenGRAppsDeps})
1414
add_dependencies(${PROJECT_NAME} opengr)
15+
if(MSVC)
16+
target_compile_options(${PROJECT_NAME} PRIVATE /bigobj)
17+
endif(MSVC)
1518
install( TARGETS ${PROJECT_NAME} RUNTIME DESTINATION bin )

apps/PCLWrapper/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ if( PCL_FOUND )
1414
add_executable(${PROJECT_NAME} ${Demo_PCL_SRC} ${Demo_PCL_headers})
1515
target_link_libraries(${PROJECT_NAME} gr::algo gr::utils gr::accel ${PCL_LIBRARIES} ${OpenGRAppsDeps})
1616
add_dependencies(${PROJECT_NAME} opengr)
17+
if(MSVC)
18+
target_compile_options(${PROJECT_NAME} PRIVATE /bigobj)
19+
endif(MSVC)
1720

1821
# [C/C++]>[General]>[Additional Include Directories]
1922
include_directories( ${PCL_INCLUDE_DIRS} )

apps/Super4PCS/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,8 @@ set(Demo_Super4PCS_SRC
66

77
add_executable(${PROJECT_NAME} ${Demo_Super4PCS_SRC})
88
target_link_libraries(${PROJECT_NAME} gr::utils gr::accel gr::algo gr::io ${OpenGRAppsDeps})
9+
if(MSVC)
10+
target_compile_options(${PROJECT_NAME} PRIVATE /bigobj)
11+
endif(MSVC)
912
add_dependencies(${PROJECT_NAME} opengr)
1013
install( TARGETS ${PROJECT_NAME} RUNTIME DESTINATION bin )

tests/CMakeLists.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,10 @@ if(OpenGR_USE_CHEALPIX)
9595
target_link_libraries(pair_extraction ${Chealpix_LIBS} )
9696
endif(OpenGR_USE_CHEALPIX)
9797

98+
if(MSVC)
99+
target_compile_options(pair_extraction PRIVATE /bigobj)
100+
endif(MSVC)
101+
98102
#############################################
99103
## quad extraction
100104
#set(quad_extraction_SRCS
@@ -133,6 +137,9 @@ if (CXX_FILESYSTEM_HAVE_FS)
133137
if(OpenGR_USE_CHEALPIX)
134138
target_link_libraries(matching ${Chealpix_LIBS} )
135139
endif(OpenGR_USE_CHEALPIX)
140+
if(MSVC)
141+
target_compile_options(matching PRIVATE /bigobj)
142+
endif(MSVC)
136143
endif (CXX_FILESYSTEM_HAVE_FS)
137144

138145
#############################################
@@ -157,6 +164,9 @@ if (CXX_FILESYSTEM_HAVE_FS)
157164
if(OpenGR_USE_CHEALPIX)
158165
target_link_libraries(matching3pcs ${Chealpix_LIBS} )
159166
endif(OpenGR_USE_CHEALPIX)
167+
if(MSVC)
168+
target_compile_options(matching3pcs PRIVATE /bigobj)
169+
endif(MSVC)
160170

161171

162172
#############################################
@@ -172,6 +182,9 @@ if (CXX_FILESYSTEM_HAVE_FS)
172182
target_compile_definitions(test_io PUBLIC -DCXX_FILESYSTEM_HAVE_FS -DCXX_FILESYSTEM_IS_EXPERIMENTAL=$<BOOL:${CXX_FILESYSTEM_IS_EXPERIMENTAL}> -DCXX_FILESYSTEM_NAMESPACE=${CXX_FILESYSTEM_NAMESPACE})
173183
add_dependencies(test_io dataset-standford-bunny)
174184
add_dependencies(buildtests test_io)
185+
if(MSVC)
186+
target_compile_options(test_io PRIVATE /bigobj)
187+
endif(MSVC)
175188
endif (OpenGR_COMPILE_APPS)
176189
endif (CXX_FILESYSTEM_HAVE_FS)
177190

0 commit comments

Comments
 (0)