source: pacpusframework/branches/2.0-beta1/src/TestComponents/CPT/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: 2.0 KB
Line 
1project(DbtPlyCPTComponent)
2
3################################################################################
4add_definitions( -DDBTPLYCPTCOMPONENT_EXPORTS )
5
6################################################################################
7# FILES
8pacpus_plugin(PLUGIN_CPP PLUGIN_H ${PROJECT_NAME})
9
10#set(CMAKE_BUILD_TYPE Debug)
11include_directories(${PACPUSINCLUDE_DIRECTORY})
12include_directories(${PACPUSINCLUDE_DIRECTORY}/extlib/qwt-5.2.1)
13link_directories(${PACPUSLIB_DIRECTORY})
14link_directories(${PACPUSBIN_DIRECTORY})
15
16message(STATUS PLUGIN_H=${PLUGIN_H})
17message(STATUS PLUGIN_CPP=${PLUGIN_CPP})
18
19################################################################################
20set(HDRS
21 DbtPlyCPTComponent.h
22 ../PoseViewer/PoseViewer.h
23)
24
25set(SRCS
26 DbtPlyCPTComponent.cpp
27 ../PoseViewer/PoseViewer.cpp
28)
29
30set(FILES_TO_MOC
31 DbtPlyCPTComponent.h
32 ../PoseViewer/PoseViewer.h
33)
34
35qt4_wrap_cpp(MOCED_SOURCES
36 ${PLUGIN_H}
37 ${FILES_TO_MOC}
38)
39################################################################################
40# BUILD AND LINK
41add_library(${PROJECT_NAME} SHARED
42 ${HDRS}
43 ${SRCS}
44
45 ${PLUGIN_CPP}
46 ${MOCED_SOURCES}
47)
48# LIBS
49list(APPEND LIBS
50 optimized dbiteplayerlib debug dbiteplayerlib_d
51 optimized FileLib debug FileLib_d
52 optimized PacpusLib debug PacpusLib_d
53 optimized PacpusTools debug PacpusTools_d
54 optimized NMEA0183LIB debug NMEA0183LIB_d
55 ${QT_LIBRARIES}
56)
57if(WIN32)
58 list(APPEND LIBS
59 optimized ROAD_TIME debug ROAD_TIME_d
60 )
61endif()
62# LINK
63target_link_libraries(${PROJECT_NAME} ${LIBS})
64# PROPERTIES
65set_target_properties(${PROJECT_NAME} PROPERTIES DEBUG_POSTFIX "_d")
66# FOLDERS
67if(PACPUS_FOLDERS)
68 set_target_properties(${PROJECT_NAME} PROPERTIES FOLDER "DbtPly")
69endif()
70
71################################################################################
72# INSTALL
73install(TARGETS ${PROJECT_NAME}
74 RUNTIME DESTINATION ${PACPUSBIN_DIRECTORY}
75 LIBRARY DESTINATION ${PACPUSBIN_DIRECTORY}
76 ARCHIVE DESTINATION ${PACPUSLIB_DIRECTORY}
77)
Note: See TracBrowser for help on using the repository browser.