diff options
author | crupest <crupest@outlook.com> | 2024-10-06 13:57:39 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2024-10-06 13:57:39 +0800 |
commit | dfe62dcf8bcefc523b466e127c3edc4dc2756629 (patch) | |
tree | 1c751a14ba0da07ca2ff805633f97568060aa4c9 /src/common/CMakeLists.txt | |
parent | f51eb955e188858272230a990565931e7403f23b (diff) | |
download | cru-dfe62dcf8bcefc523b466e127c3edc4dc2756629.tar.gz cru-dfe62dcf8bcefc523b466e127c3edc4dc2756629.tar.bz2 cru-dfe62dcf8bcefc523b466e127c3edc4dc2756629.zip |
Rename common to base.
Diffstat (limited to 'src/common/CMakeLists.txt')
-rw-r--r-- | src/common/CMakeLists.txt | 80 |
1 files changed, 0 insertions, 80 deletions
diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt deleted file mode 100644 index 19feddba..00000000 --- a/src/common/CMakeLists.txt +++ /dev/null @@ -1,80 +0,0 @@ -add_library(CruBase - Base.cpp - Buffer.cpp - Exception.cpp - Format.cpp - PropertyTree.cpp - String.cpp - StringToNumberConverter.cpp - StringUtil.cpp - SubProcess.cpp - io/AutoReadStream.cpp - io/BufferStream.cpp - io/CFileStream.cpp - io/Stream.cpp - io/ProxyStream.cpp - io/Resource.cpp - io/MemoryStream.cpp - log/Logger.cpp - log/StdioLogTarget.cpp - platform/Exception.cpp -) -target_compile_definitions(CruBase PRIVATE CRU_BASE_EXPORT_API) -target_include_directories(CruBase PUBLIC ${CRU_INCLUDE_DIR}) -target_compile_definitions(CruBase PUBLIC $<$<CONFIG:Debug>:CRU_DEBUG>) - -if (UNIX AND NOT EMSCRIPTEN) - target_sources(CruBase PRIVATE - platform/unix/PosixSpawnSubProcess.cpp - platform/unix/UnixFileStream.cpp - platform/unix/UnixPipe.cpp - ) - - if (NOT APPLE) - target_link_libraries(CruBase PUBLIC pthread) - endif() -endif() - -if (APPLE) - find_library(CORE_FOUNDATION CoreFoundation REQUIRED) - target_link_libraries(CruBase PUBLIC ${CORE_FOUNDATION}) - - target_sources(CruBase PRIVATE - platform/osx/Convert.cpp - platform/osx/Exception.cpp - ) -endif() - -if (EMSCRIPTEN) - target_compile_options(CruBase PUBLIC "-fwasm-exceptions") - target_link_options(CruBase PUBLIC "-fwasm-exceptions") - - target_sources(CruBase PRIVATE - platform/web/WebException.cpp - ) -endif() - -if (WIN32) - target_sources(CruBase PRIVATE - platform/win/BridgeComStream.cpp - platform/win/ComAutoInit.cpp - platform/win/DebugLogTarget.cpp - platform/win/Exception.cpp - platform/win/StreamConvert.cpp - platform/win/Win32FileStream.cpp - ) - - target_link_libraries(CruBase PUBLIC Shlwapi.lib) -endif() - -if (WIN32) - target_compile_definitions(CruBase PUBLIC CRU_PLATFORM_WINDOWS) -elseif(APPLE) - target_compile_definitions(CruBase PUBLIC CRU_PLATFORM_OSX) -elseif(EMSCRIPTEN) - target_compile_definitions(CruBase PUBLIC CRU_PLATFORM_EMSCRIPTEN) -else() - target_compile_definitions(CruBase PUBLIC CRU_PLATFORM_LINUX) -endif() - -target_link_libraries(CruBase PUBLIC double-conversion) |