| 1 |
|
| 2 |
add_executable(fs_dir dir.cpp) |
| 3 |
target_link_libraries(fs_dir ghc_filesystem) |
| 4 |
if(CMAKE_CXX_COMPILER_ID MATCHES MSVC) |
| 5 |
target_compile_definitions(fs_dir PRIVATE _CRT_SECURE_NO_WARNINGS) |
| 6 |
endif() |
| 7 |
AddExecutableWithStdFS(std_fs_dir dir.cpp) |
| 8 |
|
| 9 |
add_executable(fs_du du.cpp) |
| 10 |
target_link_libraries(fs_du ghc_filesystem) |
| 11 |
AddExecutableWithStdFS(std_fs_du du.cpp) |
| 12 |
|
| 13 |
if(EXISTS "${PROJECT_SOURCE_DIR}/examples/benchmark.cpp") |
| 14 |
add_executable(fs_benchmark benchmark.cpp) |
| 15 |
set_property(TARGET fs_benchmark PROPERTY CXX_STANDARD 17) |
| 16 |
target_link_libraries(fs_benchmark ghc_filesystem) |
| 17 |
endif() |