Complete all builds

This commit is contained in:
2026-03-28 17:52:25 +11:00
parent 09084b0eea
commit c9ea3ac5a2
6 changed files with 24 additions and 2 deletions

View File

@@ -29,10 +29,18 @@ target_link_libraries(ANSIO
PRIVATE labview
)
target_compile_definitions(ANSIO PRIVATE UNICODE _UNICODE ANSIO_EXPORTS _USRDLL)
target_compile_definitions(ANSIO PRIVATE UNICODE _UNICODE NOMINMAX ANSIO_EXPORTS _USRDLL)
if(WIN32)
target_link_libraries(ANSIO PRIVATE ${WIN_COMMON_LIBS})
else()
target_link_libraries(ANSIO PRIVATE ${UNIX_COMMON_LIBS})
endif()
# C files must skip C++ precompiled headers and compile as C
set_source_files_properties(
IOBox/cJSON.c IOBox/cJSON_Utils.c
IOBox/mbedtls/aes.c IOBox/mbedtls/base64.c IOBox/mbedtls/sha256.c
PROPERTIES SKIP_PRECOMPILE_HEADERS ON LANGUAGE C
)
target_precompile_headers(ANSIO PRIVATE pch.h)

View File

@@ -9,10 +9,14 @@
// add headers that you want to pre-compile here
#include "framework.h"
#include <algorithm>
#include <memory>
#include <string>
#include <string_view>
#include <vector>
#include <mutex>
using std::min;
using std::max;
#endif //PCH_H