|
Last change
on this file since 19 was 19, checked in by Marek Kurdej, 12 years ago |
|
Update: fixed LMOComponent compilation with Qt5.
|
|
File size:
2.0 KB
|
| Line | |
|---|
| 1 | project(LMOComponent)
|
|---|
| 2 |
|
|---|
| 3 | ################################################################################
|
|---|
| 4 | add_definitions( -DLMOCOMPONENT_EXPORTS )
|
|---|
| 5 |
|
|---|
| 6 | ################################################################################
|
|---|
| 7 | # Include directories
|
|---|
| 8 | include_directories(
|
|---|
| 9 | ${PACPUSINCLUDE_DIRECTORY}
|
|---|
| 10 | ${PROJECT_BINARY_DIR}
|
|---|
| 11 | ${QT_INCLUDE_DIR}
|
|---|
| 12 | )
|
|---|
| 13 |
|
|---|
| 14 | ################################################################################
|
|---|
| 15 | # Link directories
|
|---|
| 16 | link_directories(
|
|---|
| 17 | ${PACPUS_LIB_DIR}
|
|---|
| 18 | )
|
|---|
| 19 | pacpus_plugin(PLUGIN_CPP PLUGIN_H ${PROJECT_NAME})
|
|---|
| 20 |
|
|---|
| 21 | ################################################################################
|
|---|
| 22 | # FILES
|
|---|
| 23 | set(HDRS
|
|---|
| 24 | LMOComponent.h
|
|---|
| 25 | LMOComponentConfig.h
|
|---|
| 26 | )
|
|---|
| 27 |
|
|---|
| 28 | set(SRCS
|
|---|
| 29 | LMOComponent.cpp
|
|---|
| 30 | ${PLUGIN_CPP}
|
|---|
| 31 | )
|
|---|
| 32 |
|
|---|
| 33 | set(MOC_FILES
|
|---|
| 34 | #LMOComponent.h
|
|---|
| 35 | ${PLUGIN_H}
|
|---|
| 36 | )
|
|---|
| 37 |
|
|---|
| 38 | set(UI_FILES
|
|---|
| 39 | )
|
|---|
| 40 |
|
|---|
| 41 | ################################################################################
|
|---|
| 42 | # Call moc, uic
|
|---|
| 43 | qt_wrap_cpp(MOC_SRCS
|
|---|
| 44 | ${MOC_FILES}
|
|---|
| 45 | )
|
|---|
| 46 | qt_wrap_ui(UI_SRCS
|
|---|
| 47 | ${UI_FILES}
|
|---|
| 48 | )
|
|---|
| 49 |
|
|---|
| 50 | ################################################################################
|
|---|
| 51 | # BUILD and LINK
|
|---|
| 52 | pacpus_add_library(${PROJECT_NAME} SHARED
|
|---|
| 53 | ${SRCS}
|
|---|
| 54 | ${MOC_SRCS}
|
|---|
| 55 | ${UI_SRCS}
|
|---|
| 56 | )
|
|---|
| 57 |
|
|---|
| 58 | ################################################################################
|
|---|
| 59 | # LIBS
|
|---|
| 60 | message(STATUS ${PACPUS_DEPENDENCIES_LIB})
|
|---|
| 61 |
|
|---|
| 62 | set(LIBS
|
|---|
| 63 | ${PACPUS_LIBRARIES}
|
|---|
| 64 | ${QT_LIBRARIES}
|
|---|
| 65 | ${PACPUS_DEPENDENCIES_LIB}
|
|---|
| 66 | optimized FileLib debug FileLib_d
|
|---|
| 67 | optimized PacpusLib debug PacpusLib_d
|
|---|
| 68 | optimized PacpusTools debug PacpusTools_d
|
|---|
| 69 | )
|
|---|
| 70 | if (WIN32)
|
|---|
| 71 | list(APPEND LIBS
|
|---|
| 72 | optimized ROAD_TIME debug ROAD_TIME_d
|
|---|
| 73 | )
|
|---|
| 74 | endif()
|
|---|
| 75 |
|
|---|
| 76 | ################################################################################
|
|---|
| 77 | # LINK
|
|---|
| 78 | target_link_libraries(${PROJECT_NAME} ${LIBS})
|
|---|
| 79 | # PROPERTIES
|
|---|
| 80 | set_target_properties(${PROJECT_NAME} PROPERTIES DEBUG_POSTFIX "_d")
|
|---|
| 81 | # FOLDERS
|
|---|
| 82 | pacpus_folder(${PROJECT_NAME} "components")
|
|---|
| 83 |
|
|---|
| 84 | ################################################################################
|
|---|
| 85 | # INSTALL
|
|---|
| 86 | pacpus_install(${PROJECT_NAME})
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.