Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 5039425b69
Fetching contributors…

Cannot retrieve contributors at this time

89 lines (75 sloc) 2.103 kb
MESSAGE( STATUS "Configuring libstage" )
# for config.h
include_directories(${PROJECT_BINARY_DIR})
set( stageSrcs
block.cc
blockgroup.cc
camera.cc
color.cc
file_manager.cc
file_manager.hh
gl.cc
logentry.cc
model.cc
model_actuator.cc
model_blinkenlight.cc
model_blobfinder.cc
model_bumper.cc
model_callbacks.cc
model_camera.cc
model_draw.cc
model_fiducial.cc
model_getset.cc
model_gripper.cc
model_laser.cc
model_lightindicator.cc
model_load.cc
model_position.cc
model_ranger.cc
option.cc
powerpack.cc
region.cc
stage.cc
stage.hh
texture_manager.cc
typetable.cc
world.cc
worldfile.cc
canvas.cc
options_dlg.cc
options_dlg.hh
vis_strip.cc
worldgui.cc
ancestor.cc
)
set_source_files_properties( ${stageSrcs} PROPERTIES COMPILE_FLAGS "${FLTK_CFLAGS}" )
add_library(stage SHARED ${stageSrcs})
target_link_libraries( stage
${LTDL_LIB}
# ${OPENGL_LIBRARIES} # is it safe to remove these permanently?
# ${FLTK_LIBS2}
)
# causes the shared library to have a version number
set_target_properties( stage PROPERTIES
VERSION ${VERSION}
LINK_FLAGS "${FLTK_LDFLAGS}"
)
set( stagebinarySrcs main.cc )
set_source_files_properties( ${stagebinarySrcs} PROPERTIES COMPILE_FLAGS "${FLTK_CFLAGS}" )
add_executable( stagebinary ${stagebinarySrcs} )
# Apple seems to have trouble when libstage and stagebinary are linked against FLTK
# Newer Linux distributions won't allow stagebinary to inherit libstage's links to fltk, so we need
# to explicitly link on Linux
if (NOT PROJECT_OS_LINUX)
set_target_properties( stagebinary PROPERTIES OUTPUT_NAME stage )
target_link_libraries( stagebinary stage )
ELSE (NOT PROJECT_OS_LINUX)
set_target_properties( stagebinary PROPERTIES OUTPUT_NAME stage LINK_FLAGS "${FLTK_LDFLAGS}" )
target_link_libraries( stagebinary stage pthread )
ENDIF(NOT PROJECT_OS_LINUX)
INSTALL(TARGETS stagebinary stage
RUNTIME DESTINATION bin
LIBRARY DESTINATION ${PROJECT_LIB_DIR}
)
INSTALL(FILES stage.hh
DESTINATION include/${PROJECT_NAME}-${APIVERSION})
Jump to Line
Something went wrong with that request. Please try again.