2013-04-30 20:21:27 +00:00
|
|
|
|
|
|
|
|
SET(SRC_FILES
|
|
|
|
|
main.cpp
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
SET(INCLUDE_DIRS
|
|
|
|
|
../include
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
# Make sure the compiler can find include files from our library.
|
|
|
|
|
INCLUDE_DIRECTORIES(${INCLUDE_DIRS})
|
|
|
|
|
|
|
|
|
|
# Add binary called "resource_tool" that is built from the source file "main.cpp".
|
|
|
|
|
# The extension is automatically found.
|
2016-01-23 17:04:30 -05:00
|
|
|
ADD_EXECUTABLE(res_tool ${SRC_FILES})
|
|
|
|
|
TARGET_LINK_LIBRARIES(res_tool rtabmap_utilite)
|
|
|
|
|
|
2013-04-30 20:21:27 +00:00
|
|
|
SET_TARGET_PROPERTIES(
|
2016-01-23 17:04:30 -05:00
|
|
|
res_tool
|
2013-04-30 20:21:27 +00:00
|
|
|
PROPERTIES
|
|
|
|
|
VERSION ${UTILITE_VERSION}
|
|
|
|
|
SOVERSION ${UTILITE_VERSION}
|
2016-01-23 17:04:30 -05:00
|
|
|
OUTPUT_NAME ${PROJECT_PREFIX}-res_tool
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
INSTALL(TARGETS res_tool
|
|
|
|
|
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" COMPONENT runtime
|
|
|
|
|
BUNDLE DESTINATION "${CMAKE_BUNDLE_LOCATION}" COMPONENT runtime)
|