Files
allwpilib/wpilibc/sim/CMakeLists.txt
Peter Mitrano e71f454b9d Renamed folders for consistency, using sim/athena/shared schema (#27)
Rename the following folders:
hal/lib/Athena -> hal/lib/athena
hal/lib/Desktop -> hal/lib/sim
hal/lib/Shared -> hal/lib/shared
wpilibc/Athena -> wpilibc/athena
wpilibc/simulation -> wpilibc/sim

Windows users may need to run gradlew clean after updating.
2016-05-22 14:55:51 -07: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)