Complete all builds
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user