eventstore-client-c/CMakeLists.txt

17 lines
713 B
CMake
Raw Normal View History

2018-03-20 05:48:55 +00:00
cmake_minimum_required(VERSION 3.9)
2018-03-19 05:44:23 +00:00
project(esc C)
set(CMAKE_C_STANDARD 99)
if(WIN32)
include_directories(c:/Users/nicol/dev/thirdparty/protobuf-c)
link_directories(c:/Users/nicol/dev/thirdparty/protobuf-c/protobuf-c/.libs)
endif()
2018-03-19 05:44:23 +00:00
2018-03-20 05:48:55 +00:00
add_executable(esc src/main.c src/utils/mutex.c src/utils/mutex.h src/utils/thread.c src/utils/thread.h src/utils/socket.c src/utils/socket.h src/esc.c src/esc.h src/proto.c src/proto.h src/utils/uuid.c src/utils/uuid.h src/utils/buffer.c src/utils/buffer.h src/tcp_package.c src/tcp_package.h src/utils/string.c src/utils/string.h)
2018-03-19 05:44:23 +00:00
if(WIN32)
target_link_libraries(esc wsock32 ws2_32 libprotobuf-c.a)
else()
target_link_libraries(esc pthread protobuf-c)
2018-03-19 05:44:23 +00:00
endif()