Last active
          March 26, 2021 11:16 
        
      - 
      
 - 
        
Save KevinLADLee/abaa927d1db7f1162c88ce04d2f7e723 to your computer and use it in GitHub Desktop.  
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | 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} | |
| ) | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
            
Carla CppClient CMakelists Template