CMakeLists.txt 612 Bytes
Newer Older
1 2 3 4
cmake_minimum_required(VERSION 2.8)

project(TorcsClient)

Svetlana's avatar
Svetlana committed
5 6 7
SET(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
SET(CMAKE_CXX_STANDARD 14)

Svetlana's avatar
Svetlana committed
8 9
find_package(roscpp REQUIRED)
find_package(std_msgs REQUIRED)
Svetlana's avatar
Svetlana committed
10

Svetlana's avatar
Svetlana committed
11
#find_package(FreeImage)
12 13 14

INCLUDE_DIRECTORIES("${CMAKE_SOURCE_DIR}/../experiments/output/cpp")

Svetlana's avatar
Svetlana committed
15
add_executable(${PROJECT_NAME} torcs.cpp torcsclient.cpp)
16

Svetlana's avatar
Svetlana committed
17 18 19
target_link_libraries(TorcsClient freeimage ${roscpp_LIBRARIES} ${std_msgs_LIBRARIES})
target_include_directories(TorcsClient PUBLIC ${roscpp_INCLUDE_DIRS} ${std_msgs_INCLUDE_DIRS})
set_target_properties(TorcsClient PROPERTIES LINKER_LANGUAGE CXX)