Commit c37f03df authored by Matthew Hausknecht's avatar Matthew Hausknecht

Added cmake file.

parent 7156fcc7
cmake_minimum_required(VERSION 2.8.3)
project(hfo)
set(SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/src)
SET(LIBRCSC_INCLUDE ~/.local/include)
SET(LIBRCSC_LINK ~/.local/lib)
include_directories(
${SOURCE_DIR}
${SOURCE_DIR}/chain_action
${LIBRCSC_INCLUDE}
)
link_directories(
${LIBRCSC_LINK}
)
file(GLOB SOURCES ${SOURCE_DIR}/*.cpp ${SOURCE_DIR}/chain_action/*.cpp)
list(REMOVE_ITEM SOURCES ${SOURCE_DIR}/main_coach.cpp ${SOURCE_DIR}/main_player.cpp ${SOURCE_DIR}/main_trainer.cpp)
MESSAGE(${SOURCES})
list(APPEND LINK_LIBS
rcsc_agent
rcsc_geom
rcsc_param
rcsc_ann
rcsc_net
rcsc_gz
rcsc_time
rcsc_rcg
${CMAKE_THREAD_LIBS_INIT}
)
add_executable(sample_coach ${SOURCE_DIR}/main_coach.cpp ${SOURCES})
add_executable(sample_player ${SOURCE_DIR}/main_player.cpp ${SOURCES})
add_executable(sample_trainer ${SOURCE_DIR}/main_trainer.cpp ${SOURCES})
target_link_libraries(sample_coach ${LINK_LIBS})
target_link_libraries(sample_player ${LINK_LIBS})
target_link_libraries(sample_trainer ${LINK_LIBS})
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment