2018-03-19 05:44:23 +00:00
|
|
|
# cmake_minimum_required(VERSION <specify CMake version here>)
|
|
|
|
project(esc C)
|
|
|
|
|
|
|
|
set(CMAKE_C_STANDARD 99)
|
|
|
|
|
|
|
|
include_directories(c:/Users/nicol/dev/thirdparty/protobuf-c)
|
|
|
|
link_directories(c:/Users/nicol/dev/thirdparty/protobuf-c/protobuf-c/.libs)
|
|
|
|
|
2018-03-19 06:08:57 +00:00
|
|
|
add_executable(esc main.c mutex.c mutex.h thread.c thread.h socket.c socket.h esc.c esc.h ClientMessageDtos.pb-c.c ClientMessageDtos.pb-c.h uuid.c uuid.h buffer.c buffer.h tcp_package.c tcp_package.h)
|
2018-03-19 05:44:23 +00:00
|
|
|
|
|
|
|
if(WIN32)
|
|
|
|
target_link_libraries(esc wsock32 ws2_32 libprotobuf-c.a)
|
|
|
|
endif()
|