g2o
Functions
/home/xuezhisd/CLionProjects/g2o/g2o/apps/g2o_cli/CMakeLists.txt File Reference

Functions

 ADD_LIBRARY (g2o_cli_library ${G2O_LIB_TYPE}dl_wrapper.cpp dl_wrapper.h output_helper.cpp output_helper.h g2o_common.cpp g2o_common.h g2o_cli_api.h) ADD_EXECUTABLE(g2o_cli_application g2o.cpp) if(POLICY CMP0043) cmake_policy(SET CMP0043 OLD) endif() INSTALL(TARGETS g2o_cli_library g2o_cli_application RUNTIME DESTINATION $
 

Function Documentation

ADD_LIBRARY ( g2o_cli_library ${G2O_LIB_TYPE}dl_wrapper.cpp dl_wrapper.h output_helper.cpp output_helper.h g2o_common.cpp g2o_common.h g2o_cli_api.  h)

Definition at line 1 of file CMakeLists.txt.

References core, G2O_LIBRARY_POSTFIX, and SET().

Referenced by ADD_LIBRARY(), and if().

1  {G2O_LIB_TYPE}
2  dl_wrapper.cpp dl_wrapper.h
3  output_helper.cpp output_helper.h
4  g2o_common.cpp g2o_common.h
5  g2o_cli_api.h
6 )
7 
8 SET_TARGET_PROPERTIES(g2o_cli_library PROPERTIES OUTPUT_NAME ${LIB_PREFIX}cli)
9 
10 SET_PROPERTY(TARGET g2o_cli_library APPEND PROPERTY COMPILE_DEFINITIONS G2O_DEFAULT_TYPES_DIR_="${CMAKE_LIBRARY_OUTPUT_DIRECTORY}" G2O_DEFAULT_SOLVERS_DIR_="${CMAKE_LIBRARY_OUTPUT_DIRECTORY}")
11 
12 TARGET_LINK_LIBRARIES(g2o_cli_library core)
13 IF(UNIX)
14  TARGET_LINK_LIBRARIES(g2o_cli_library dl)
15 ENDIF(UNIX)
16 
17 ADD_EXECUTABLE(g2o_cli_application
18  g2o.cpp)
19 
20 TARGET_LINK_LIBRARIES(g2o_cli_application g2o_cli_library)
21 
22 if(POLICY CMP0043)
23 cmake_policy(SET CMP0043 OLD)
24 endif()
25 SET_PROPERTY(TARGET g2o_cli_library APPEND PROPERTY COMPILE_DEFINITIONS_DEBUG G2O_LIBRARY_POSTFIX="${CMAKE_DEBUG_POSTFIX}")
26 SET_PROPERTY(TARGET g2o_cli_library APPEND PROPERTY COMPILE_DEFINITIONS_RELWITHDEBINFO G2O_LIBRARY_POSTFIX="${CMAKE_RELWITHDEBINFO_POSTFIX}")
27 SET_PROPERTY(TARGET g2o_cli_library APPEND PROPERTY COMPILE_DEFINITIONS_MINSIZEREL G2O_LIBRARY_POSTFIX="${CMAKE_MINSIZEREL_POSTFIX}")
28 
29 SET_TARGET_PROPERTIES(g2o_cli_application PROPERTIES OUTPUT_NAME g2o${EXE_POSTFIX})
30 
31 
32 INSTALL(TARGETS g2o_cli_library g2o_cli_application
33  RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/bin
#define G2O_LIBRARY_POSTFIX
Definition: g2o_common.cpp:78
SET(interface_library_src abstract_slam_interface.h parser_interface.cpp parser_interface.h slam_context_interface.cpp slam_context_interface.h) ADD_LIBRARY(interface_library STATIC $
Definition: CMakeLists.txt:1
if(POLICY CMP0020) cmake_policy(SET CMP0020 OLD) endif() if(Qt4_FOUND) endif() if(Qt5_FOUND) endif() ADD_LIBRARY(viewer_library $
Definition: CMakeLists.txt:2
stuff to open files and other unsorted components core