윈도우용 코드 완성
This commit is contained in:
@@ -33,9 +33,12 @@ add_executable(${PROJECT_NAME}
|
||||
)
|
||||
target_link_libraries(${PROJECT_NAME} PRIVATE Microsoft.GSL::GSL)
|
||||
target_link_libraries(${PROJECT_NAME} PRIVATE spdlog)
|
||||
target_link_libraries(${PROJECT_NAME} PRIVATE ws2_32)
|
||||
|
||||
target_include_directories(${PROJECT_NAME} PUBLIC
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../include
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/include
|
||||
)
|
||||
target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_20)
|
||||
target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_20)
|
||||
|
||||
target_precompile_headers(${PROJECT_NAME} PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/../include/precomp.hpp")
|
||||
@@ -1,6 +1,8 @@
|
||||
#include <iostream>
|
||||
#include "Socket/Error.hpp"
|
||||
#include "Socket/Socket_Init.hpp"
|
||||
#include "precomp.hpp"
|
||||
|
||||
int main() {
|
||||
std::cout << "Hello, world!" << std::endl;
|
||||
struct Chattr::Socket_Init socket(AF_INET, SOCK_STREAM, 0);
|
||||
std::cout << "Hello, world!" << socket.get() << std::endl;
|
||||
}
|
||||
Reference in New Issue
Block a user