Finished adding CMakeLists.txt
This commit is contained in:
parent
d09e4ca072
commit
ac969bf1d2
2 changed files with 17 additions and 0 deletions
6
src/Core/CMakeLists.txt
Normal file
6
src/Core/CMakeLists.txt
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
add_library(Core STATIC
|
||||||
|
Logger.cpp
|
||||||
|
Logger.hpp
|
||||||
|
)
|
||||||
|
|
||||||
|
target_include_directories(Core PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
||||||
11
src/Network/CMakeLists.txt
Normal file
11
src/Network/CMakeLists.txt
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
add_library(Network STATIC
|
||||||
|
Socket.cpp
|
||||||
|
Socket.hpp
|
||||||
|
)
|
||||||
|
|
||||||
|
target_include_directories(Network PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
||||||
|
|
||||||
|
# If on Windows, link against Winsock
|
||||||
|
if(WIN32)
|
||||||
|
target_link_libraries(Network PUBLIC ws2_32)
|
||||||
|
endif()
|
||||||
Loading…
Add table
Add a link
Reference in a new issue