@@ -102,6 +102,7 @@ option(GTL_BUILD_BENCHMARKS "Whether or not to build the benchmarks" ${GTL_MASTE
102
102
103
103
if (MSVC )
104
104
add_compile_options ("$<$<COMPILE_LANGUAGE:CXX>:/bigobj>" )
105
+ set (natvis include /gtl/debug_vis/gtl.natvis )
105
106
endif ()
106
107
107
108
if (GTL_BUILD_TESTS OR GTL_BUILD_EXAMPLES )
@@ -165,48 +166,54 @@ if (GTL_BUILD_EXAMPLES)
165
166
set (THREADS_PREFER_PTHREAD_FLAG ON )
166
167
find_package (Threads REQUIRED )
167
168
168
- gtl_cc_app (ex_btree SRCS examples/btree/btree.cpp include /gtl/debug_vis/gtl. natvis )
169
+ gtl_cc_app (ex_btree SRCS examples/btree/btree.cpp ${ natvis} )
169
170
170
- gtl_cc_app (ex_insert_bench SRCS examples/phmap/insert_bench.cpp include /gtl/debug_vis/gtl. natvis )
171
- gtl_cc_app (ex_mt_word_counter SRCS examples/phmap/mt_word_counter.cpp include /gtl/debug_vis/gtl. natvis )
172
- gtl_cc_app (ex_p_bench SRCS examples/phmap/p_bench.cpp include /gtl/debug_vis/gtl. natvis )
171
+ gtl_cc_app (ex_insert_bench SRCS examples/phmap/insert_bench.cpp ${ natvis} )
172
+ gtl_cc_app (ex_mt_word_counter SRCS examples/phmap/mt_word_counter.cpp ${ natvis} )
173
+ gtl_cc_app (ex_p_bench SRCS examples/phmap/p_bench.cpp ${ natvis} )
173
174
174
175
if (MSVC )
175
- gtl_cc_app (ex_lazy_emplace_l SRCS examples/phmap/lazy_emplace_l.cpp include /gtl/debug_vis/gtl. natvis )
176
+ gtl_cc_app (ex_lazy_emplace_l SRCS examples/phmap/lazy_emplace_l.cpp ${ natvis} )
176
177
endif ()
177
178
178
- gtl_cc_app (ex_allmaps SRCS examples/hmap/allmaps.cpp include /gtl/debug_vis/gtl. natvis )
179
- gtl_cc_app (ex_basic SRCS examples/hmap/basic.cpp include /gtl/debug_vis/gtl. natvis )
180
- gtl_cc_app (ex_bench SRCS examples/hmap/bench.cpp include /gtl/debug_vis/gtl. natvis LIBS Threads::Threads )
181
- gtl_cc_app (ex_emplace SRCS examples/hmap/emplace.cpp include /gtl/debug_vis/gtl. natvis )
179
+ gtl_cc_app (ex_allmaps SRCS examples/hmap/allmaps.cpp ${ natvis} )
180
+ gtl_cc_app (ex_basic SRCS examples/hmap/basic.cpp ${ natvis} )
181
+ gtl_cc_app (ex_bench SRCS examples/hmap/bench.cpp ${ natvis} LIBS Threads::Threads )
182
+ gtl_cc_app (ex_emplace SRCS examples/hmap/emplace.cpp ${ natvis} )
182
183
183
- gtl_cc_app (ex_serialize SRCS examples/hmap/serialize.cpp include /gtl/debug_vis/gtl. natvis )
184
+ gtl_cc_app (ex_serialize SRCS examples/hmap/serialize.cpp ${ natvis} )
184
185
#target_include_directories(ex_serialize PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../cereal/include>)
185
186
186
- gtl_cc_app (ex_hash SRCS examples/hmap/hash.cpp include /gtl/debug_vis/gtl. natvis )
187
- gtl_cc_app (ex_hash_std SRCS examples/hmap/hash_std.cpp include /gtl/debug_vis/gtl. natvis )
188
- gtl_cc_app (ex_hash_value SRCS examples/hmap/hash_value.cpp include /gtl/debug_vis/gtl. natvis )
189
- gtl_cc_app (ex_two_files SRCS examples/hmap/f1.cpp examples/hmap/f2.cpp include /gtl/debug_vis/gtl. natvis )
190
- gtl_cc_app (ex_knucleotide SRCS examples/hmap/knucleotide.cpp include /gtl/debug_vis/gtl. natvis LIBS Threads::Threads )
191
- gtl_cc_app (ex_dump_load SRCS examples/hmap/dump_load.cpp include /gtl/debug_vis/gtl. natvis )
192
- gtl_cc_app (ex_dump_nested SRCS examples/hmap/dump_nested.cpp include /gtl/debug_vis/gtl. natvis )
193
- gtl_cc_app (ex_matt SRCS examples/hmap/matt.cpp include /gtl/debug_vis/gtl. natvis )
194
-
195
- gtl_cc_app (ex_soa SRCS examples/misc/soa.cpp include /gtl/debug_vis/gtl. natvis )
196
- gtl_cc_app (ex_vec_utils SRCS examples/misc/vec_utils.cpp include /gtl/debug_vis/gtl. natvis )
197
- gtl_cc_app (ex_bit_vector SRCS examples/misc/bit_vector.cpp include /gtl/debug_vis/gtl. natvis )
198
- gtl_cc_app (ex_intrusive SRCS examples/misc/intrusive.cpp include /gtl/debug_vis/gtl. natvis )
199
- gtl_cc_app (ex_utils SRCS "examples/misc/utils.cpp" include /gtl/debug_vis/gtl. natvis )
200
- #gtl_cc_app(ex_adv_utils SRCS "examples/misc/adv_utils.cpp" include/gtl/debug_vis/gtl. natvis)
187
+ gtl_cc_app (ex_hash SRCS examples/hmap/hash.cpp ${ natvis} )
188
+ gtl_cc_app (ex_hash_std SRCS examples/hmap/hash_std.cpp ${ natvis} )
189
+ gtl_cc_app (ex_hash_value SRCS examples/hmap/hash_value.cpp ${ natvis} )
190
+ gtl_cc_app (ex_two_files SRCS examples/hmap/f1.cpp examples/hmap/f2.cpp ${ natvis} )
191
+ gtl_cc_app (ex_knucleotide SRCS examples/hmap/knucleotide.cpp ${ natvis} LIBS Threads::Threads )
192
+ gtl_cc_app (ex_dump_load SRCS examples/hmap/dump_load.cpp ${ natvis} )
193
+ gtl_cc_app (ex_dump_nested SRCS examples/hmap/dump_nested.cpp ${ natvis} )
194
+ gtl_cc_app (ex_matt SRCS examples/hmap/matt.cpp ${ natvis} )
195
+
196
+ gtl_cc_app (ex_soa SRCS examples/misc/soa.cpp ${ natvis} )
197
+ gtl_cc_app (ex_vec_utils SRCS examples/misc/vec_utils.cpp ${ natvis} )
198
+ gtl_cc_app (ex_bit_vector SRCS examples/misc/bit_vector.cpp ${ natvis} )
199
+ gtl_cc_app (ex_intrusive SRCS examples/misc/intrusive.cpp ${ natvis} )
200
+ gtl_cc_app (ex_utils SRCS "examples/misc/utils.cpp" ${ natvis} )
201
+ #gtl_cc_app(ex_adv_utils SRCS "examples/misc/adv_utils.cpp" ${ natvis} )
201
202
202
203
## cache/memoize
203
- gtl_cc_app (ex_memoize_fib SRCS examples/memoize/memoize_fib.cpp include /gtl/debug_vis/gtl.natvis )
204
- gtl_cc_app (ex_memoize_primes SRCS examples/memoize/memoize_primes.cpp include /gtl/debug_vis/gtl.natvis )
205
- gtl_cc_app (ex_mt_memoize SRCS examples/memoize/mt_memoize.cpp include /gtl/debug_vis/gtl.natvis LIBS Threads::Threads )
206
- gtl_cc_app (ex_mt_memoize_lru SRCS examples/memoize/mt_memoize_lru.cpp include /gtl/debug_vis/gtl.natvis LIBS Threads::Threads )
204
+ gtl_cc_app (ex_memoize_fib SRCS examples/memoize/memoize_fib.cpp ${natvis} )
205
+ gtl_cc_app (ex_memoize_primes SRCS examples/memoize/memoize_primes.cpp ${natvis} )
206
+ gtl_cc_app (ex_mt_memoize SRCS examples/memoize/mt_memoize.cpp ${natvis} LIBS Threads::Threads )
207
+ gtl_cc_app (ex_mt_memoize_lru SRCS examples/memoize/mt_memoize_lru.cpp ${natvis} LIBS Threads::Threads )
208
+
209
+ find_package (Boost 1.70.0 )
210
+ if (Boost_FOUND )
211
+ gtl_cc_app (ex_custom_pointer SRCS examples/hmap/custom_pointer.cpp ${natvis} )
212
+ target_include_directories (ex_custom_pointer PRIVATE ${Boost_INCLUDE_DIRS} )
213
+ endif ()
207
214
endif ()
208
215
209
216
if (GTL_BUILD_BENCHMARKS )
210
- gtl_cc_app (bench_bit_vector SRCS benchmarks/bitvector_bench.cpp include /gtl/debug_vis/gtl. natvis )
211
- gtl_cc_app (bench_hash SRCS benchmarks/hash_bench.cpp include /gtl/debug_vis/gtl. natvis )
217
+ gtl_cc_app (bench_bit_vector SRCS benchmarks/bitvector_bench.cpp ${ natvis} )
218
+ gtl_cc_app (bench_hash SRCS benchmarks/hash_bench.cpp ${ natvis} )
212
219
endif ()
0 commit comments