Skip to content

Instantly share code, notes, and snippets.

@KevinLADLee
Last active March 26, 2021 11:16
Show Gist options
  • Save KevinLADLee/abaa927d1db7f1162c88ce04d2f7e723 to your computer and use it in GitHub Desktop.
Save KevinLADLee/abaa927d1db7f1162c88ce04d2f7e723 to your computer and use it in GitHub Desktop.
cmake_minimum_required(VERSION 3.5.1)
project(carla_cppclient)
set(CMAKE_BUILD_TYPE "Release")
set(CMAKE_CXX_FLAGS "-std=c++14")
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -Wall -g")
find_package(Threads REQUIRED)
find_package(JPEG REQUIRED)
find_package(TIFF REQUIRED)
include_directories(${CMAKE_SOURCE_DIR}/libcarla-install/include
SYSTEM PUBLIC
${CMAKE_SOURCE_DIR}/libcarla-install/include/system
)
link_directories(${CMAKE_SOURCE_DIR}/libcarla-install/lib)
link_libraries(carla_client boost_filesystem rpc)
add_executable(main main.cpp)
target_link_libraries(main png Recast Detour DetourCrowd
${CMAKE_THREAD_LIBS_INIT}
${JPEG_LIBRARY}
${TIFF_LIBRARY}
)
@KevinLADLee
Copy link
Author

Carla CppClient CMakelists Template

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment