-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
My IDE (clion) wants to do this automatically and I agree with its choices w.r.t removing hard tabs and adding some more consistent whitespace.
- Loading branch information
Showing
2 changed files
with
42 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,46 @@ | ||
IF(WIN32) | ||
add_compile_definitions( | ||
_WIN32_WINNT=0x601 | ||
_CRT_SECURE_NO_WARNINGS | ||
_CRT_NONSTDC_NO_WARNINGS | ||
ssize_t=int | ||
) | ||
ENDIF(WIN32) | ||
IF (WIN32) | ||
add_compile_definitions( | ||
_WIN32_WINNT=0x601 | ||
_CRT_SECURE_NO_WARNINGS | ||
_CRT_NONSTDC_NO_WARNINGS | ||
ssize_t=int | ||
) | ||
ENDIF (WIN32) | ||
|
||
add_executable(client client.c common.c) | ||
add_dependencies(client rustls-ffi) | ||
target_include_directories(client PUBLIC ${CMAKE_SOURCE_DIR}/src) | ||
IF(WIN32) | ||
IF (WIN32) | ||
target_link_libraries( | ||
client | ||
debug "${CMAKE_SOURCE_DIR}/target/debug/rustls_ffi.lib" | ||
optimized "${CMAKE_SOURCE_DIR}/target/release/rustls_ffi.lib" | ||
advapi32.lib bcrypt.lib crypt32.lib cryptnet.lib kernel32.lib ncrypt.lib bcrypt.lib advapi32.lib legacy_stdio_definitions.lib kernel32.lib advapi32.lib kernel32.lib ntdll.lib userenv.lib ws2_32.lib synchronization.lib kernel32.lib ws2_32.lib kernel32.lib msvcrt.lib | ||
client | ||
debug "${CMAKE_SOURCE_DIR}/target/debug/rustls_ffi.lib" | ||
optimized "${CMAKE_SOURCE_DIR}/target/release/rustls_ffi.lib" | ||
advapi32.lib bcrypt.lib crypt32.lib cryptnet.lib kernel32.lib ncrypt.lib bcrypt.lib advapi32.lib legacy_stdio_definitions.lib kernel32.lib advapi32.lib kernel32.lib ntdll.lib userenv.lib ws2_32.lib synchronization.lib kernel32.lib ws2_32.lib kernel32.lib msvcrt.lib | ||
) | ||
set_property(TARGET client PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreadedDLL") | ||
ENDIF(WIN32) | ||
IF(UNIX) | ||
ENDIF (WIN32) | ||
IF (UNIX) | ||
# TODO | ||
ENDIF(UNIX) | ||
IF(APPLE) | ||
ENDIF (UNIX) | ||
IF (APPLE) | ||
# TODO | ||
ENDIF(APPLE) | ||
ENDIF (APPLE) | ||
|
||
add_executable(server server.c common.c) | ||
add_dependencies(server rustls-ffi) | ||
target_include_directories(server PUBLIC ${CMAKE_SOURCE_DIR}/src) | ||
IF(WIN32) | ||
IF (WIN32) | ||
target_link_libraries( | ||
server | ||
debug "${CMAKE_SOURCE_DIR}/target/debug/rustls_ffi.lib" | ||
optimized "${CMAKE_SOURCE_DIR}/target/release/rustls_ffi.lib" | ||
advapi32.lib bcrypt.lib crypt32.lib cryptnet.lib kernel32.lib ncrypt.lib bcrypt.lib advapi32.lib legacy_stdio_definitions.lib kernel32.lib advapi32.lib kernel32.lib ntdll.lib userenv.lib ws2_32.lib synchronization.lib kernel32.lib ws2_32.lib kernel32.lib msvcrt.lib | ||
server | ||
debug "${CMAKE_SOURCE_DIR}/target/debug/rustls_ffi.lib" | ||
optimized "${CMAKE_SOURCE_DIR}/target/release/rustls_ffi.lib" | ||
advapi32.lib bcrypt.lib crypt32.lib cryptnet.lib kernel32.lib ncrypt.lib bcrypt.lib advapi32.lib legacy_stdio_definitions.lib kernel32.lib advapi32.lib kernel32.lib ntdll.lib userenv.lib ws2_32.lib synchronization.lib kernel32.lib ws2_32.lib kernel32.lib msvcrt.lib | ||
) | ||
set_property(TARGET server PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreadedDLL") | ||
ENDIF(WIN32) | ||
IF(UNIX) | ||
ENDIF (WIN32) | ||
IF (UNIX) | ||
# TODO | ||
ENDIF(UNIX) | ||
IF(APPLE) | ||
ENDIF (UNIX) | ||
IF (APPLE) | ||
# TODO | ||
ENDIF(APPLE) | ||
ENDIF (APPLE) |