Files
allwpilib/wpilibc/simulation/CMakeLists.txt
Peter_Mitrano dd19778152 Removed gz_msgs from wpilibcSim
it's not directly required to link at this time, and if you want to use a different
version of protobuf on the end-user's computer then linking their robot programs
will fail

Change-Id: I9ad7c07a17b7a332b4027adbe71be605e415bc2d
2016-01-04 22:50:21 -05:00

27 lines
621 B
CMake

cmake_minimum_required(VERSION 2.8)
cmake_policy(SET CMP0015 NEW)
project(wpilibcSim)
file(GLOB_RECURSE COM_SRC_FILES ../shared/src/*.cpp
src/*.cpp)
set (INCLUDE_FOLDERS include
../shared/include
../../hal/include
${NTCORE_INCLUDE_DIR}
${GZ_MSGS_INCLUDE_DIR}
${Boost_INCLUDE_DIR}
${GAZEBO_INCLUDE_DIRS})
include_directories(${INCLUDE_FOLDERS})
link_directories(${NTCORE_LIBDIR})
add_library(${PROJECT_NAME} SHARED ${SRC_FILES} ${COM_SRC_FILES})
target_link_libraries(${PROJECT_NAME} ntcore)
set_target_properties(${PROJECT_NAME}
PROPERTIES
LIBRARY_OUTPUT_DIRECTORY ${SIMULATION_INSTALL_DIR}/lib)