remove: boost filesystem use.
This commit is contained in:
parent
fbc26d565f
commit
e1624c7145
@ -31,21 +31,12 @@ if(DEFINED USE_TEST)
|
||||
enable_testing()
|
||||
add_subdirectory(test)
|
||||
endif()
|
||||
if(DEFINED USE_BOOST)
|
||||
message(STATUS "ofen use boost lib.")
|
||||
include_directories(${MBOOST_INCLUDE_DIR})
|
||||
link_directories(${MBOOST_LIB_DIR})
|
||||
endif()
|
||||
|
||||
set(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin/${CMAKE_BUILD_TYPE})
|
||||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin/${CMAKE_BUILD_TYPE})
|
||||
|
||||
add_library(ofen STATIC ${SRC_FILES})
|
||||
target_include_directories(ofen PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include ${CMAKE_CURRENT_SOURCE_DIR}/3rd)
|
||||
if(DEFINED USE_BOOST)
|
||||
target_link_directories(ofen PRIVATE ${MBOOST_LIB_DIR})
|
||||
target_link_libraries(ofen PRIVATE ${MBOOST_LIBS})
|
||||
endif()
|
||||
if(UNIX)
|
||||
execute_process(
|
||||
COMMAND uname -a
|
||||
|
@ -1,15 +1,9 @@
|
||||
#include "of_path.h"
|
||||
#include "of_str.h"
|
||||
#include <filesystem>
|
||||
#include <fstream>
|
||||
#include <regex>
|
||||
|
||||
#ifdef USE_BOOST
|
||||
#include <boost/filesystem.hpp>
|
||||
namespace fs = boost::filesystem;
|
||||
#else
|
||||
#include <filesystem>
|
||||
namespace fs = std::filesystem;
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <windows.h>
|
||||
|
Loading…
x
Reference in New Issue
Block a user