Tweaks to build system
This commit is contained in:
parent
9607f5aa86
commit
a22d1da511
|
@ -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)
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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})
|
||||
|
|
Loading…
Reference in New Issue