Skip to content
Permalink
Browse files
fix CMakeLists
  • Loading branch information
3nids committed May 12, 2014
1 parent 18e86ab commit 6fc5d6a4cd6c68f692352b9ffc8b4b26e54d97ad
Showing with 12 additions and 16 deletions.
  1. +12 −16 src/customwidgets/CMakeLists.txt
@@ -39,18 +39,18 @@ SET(QGIS_CUSTOMWIDGETS_HDRS
qgsscalerangewidgetplugin.h
)

SET(QGIS_CUSTOMWIDGETS_UI_HDRS
# ${CMAKE_CURRENT_BINARY_DIR}/../ui/ui_qgsXXXwidget.h
)
# left commented as there is no UI file yet
# SET(QGIS_CUSTOMWIDGETS_UI_HDRS
# ${CMAKE_CURRENT_BINARY_DIR}/../ui/ui_qgsXXXwidget.h
# )

INCLUDE_DIRECTORIES(
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/../core/
${CMAKE_CURRENT_SOURCE_DIR}/../gui/
${CMAKE_CURRENT_BINARY_DIR}/../ui
# ${CMAKE_CURRENT_BINARY_DIR}/../ui (no UI file yet)
)


#############################################################
# qgis_customwidgets library

@@ -59,23 +59,19 @@ ADD_LIBRARY(qgis_customwidgets SHARED ${QGIS_CUSTOMWIDGETS_SRCS} ${QGIS_CUSTOMWI
# TODO: apple
INSTALL(FILES ${QGIS_CUSTOMWIDGETS_HDRS} DESTINATION ${QGIS_INCLUDE_DIR})


#generate unversioned libs for android
IF (NOT ANDROID)
SET_TARGET_PROPERTIES(qgis_customwidgets PROPERTIES
VERSION ${COMPLETE_VERSION}
SOVERSION ${COMPLETE_VERSION}
)
ENDIF (NOT ANDROID)
SET_TARGET_PROPERTIES(qgis_customwidgets PROPERTIES
VERSION ${COMPLETE_VERSION}
SOVERSION ${COMPLETE_VERSION}
)

# make sure that UI files will be processed first
ADD_DEPENDENCIES(qgis_customwidgets ui)
# left commented as there is no UI file yet
# ADD_DEPENDENCIES(qgis_customwidgets ui)

TARGET_LINK_LIBRARIES(qgis_customwidgets qgis_gui)

# install
INSTALL(TARGETS qgis_customwidgets
LIBRARY DESTINATION ${QGIS_CUSTOMWIDGETS_DIR}
PUBLIC_HEADER DESTINATION ${QGIS_INCLUDE_DIR})
LIBRARY DESTINATION ${QGIS_CUSTOMWIDGETS_DIR})


0 comments on commit 6fc5d6a

Please sign in to comment.