source: pacpusframework/branches/2.0-beta1/src/TestComponents/Lidar/dbt/CMakeLists.txt@ 89

Last change on this file since 89 was 89, checked in by morasjul, 11 years ago

PACPUS 2.0 Beta deployed in new branch

Major changes:
-Add communication interface between components
-Add examples for communications interface (TestComponents)
-Move to Qt5 support

  • Property svn:executable set to *
File size: 1.6 KB
Line 
1project(DbtPlyAlasca)
2
3include(${PACPUSDEV_CMAKE_DIR}/PacpusPlugin.cmake)
4pacpus_plugin(PLUGIN_CPP PLUGIN_H ${PROJECT_NAME})
5
6add_definitions( -DDBTPLYALASCA_EXPORTS )
7
8################################################################################
9# FILES
10include_directories(${PACPUSINCLUDE_DIRECTORY})
11link_directories(${PACPUSLIB_DIRECTORY})
12link_directories(${PACPUSBIN_DIRECTORY})
13
14qt4_wrap_cpp(FILE_MOC_SOURCES
15 # DbtPlyAlascaManager.h
16 ${PLUGIN_H})
17
18message(STATUS PLUGIN_H=${PLUGIN_H})
19message(STATUS PLUGIN_CPP=${PLUGIN_CPP})
20
21################################################################################
22# BUILD AND LINK
23add_library(${PROJECT_NAME} SHARED
24 DbtPlyAlascaManager.cpp
25 DbtPlyAlascaManager.h
26 ${PLUGIN_CPP}
27 ${FILE_MOC_SOURCES}
28)
29# LIBS
30list(APPEND LIBS
31 optimized dbiteplayerlib debug dbiteplayerlib_d
32 optimized FileLib debug FileLib_d
33 optimized PacpusLib debug PacpusLib_d
34 optimized PacpusTools debug PacpusTools_d
35 ${QT_LIBRARIES}
36)
37if(WIN32)
38 list(APPEND LIBS
39 optimized ROAD_TIME debug ROAD_TIME_d
40 )
41endif()
42# LINK
43target_link_libraries(${PROJECT_NAME} ${LIBS})
44# PROPERTIES
45set_target_properties(${PROJECT_NAME} PROPERTIES DEBUG_POSTFIX "_d")
46# FOLDERS
47if(PACPUS_FOLDERS)
48 set_target_properties(${PROJECT_NAME} PROPERTIES FOLDER "DbtPly")
49endif()
50
51################################################################################
52# INSTALL
53install(TARGETS ${PROJECT_NAME}
54 RUNTIME DESTINATION ${PACPUSBIN_DIRECTORY}
55 LIBRARY DESTINATION ${PACPUSBIN_DIRECTORY}
56 ARCHIVE DESTINATION ${PACPUSLIB_DIRECTORY}
57)
Note: See TracBrowser for help on using the repository browser.