Tweaks to build system

This commit is contained in:
nsubiron 2017-03-16 16:55:32 +01:00
parent 9607f5aa86
commit a22d1da511
3 changed files with 3 additions and 1 deletions

View File

@ -3,6 +3,7 @@ project (CarlaServer)
if (UNIX)
set(CMAKE_CXX_COMPILER clang++)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
find_package(Threads)
endif (UNIX)

View File

@ -16,6 +16,7 @@ $(PROTOBUF_SRC_DIR)/%.pb.cc: $(PROTOBUF_SRC_DIR)/%.proto
protoc -I=$(PROTOBUF_SRC_DIR) --cpp_out=$(PROTOBUF_SRC_DIR) $<
clean:
rm -f $(PROTOBUF_SRC_DIR)/carla_protocol.pb.*
rm -Rf build CMakeFiles
clean-all: clean

View File

@ -5,4 +5,4 @@ file(GLOB carla_server_SRC
"*.pb.cc"
)
add_library(carla_server ../CarlaServer.cpp ${carla_server_SRC})
add_library(carla_server STATIC ../CarlaServer.cpp ${carla_server_SRC})