X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FEvent%2FCMakeLists.txt;h=0fef68e5cb09287813206574b6757e562b970a6a;hb=6f75b0c075ffb1dc9b36df5d9b000b3b9f18ac36;hp=ee1974dc3046902e0328e13b01d1549f30efe327;hpb=9334d014cf8b15d20ab2bd1d8cc85bca5a0c12a8;p=modules%2Fgui.git diff --git a/src/Event/CMakeLists.txt b/src/Event/CMakeLists.txt index ee1974dc3..0fef68e5c 100755 --- a/src/Event/CMakeLists.txt +++ b/src/Event/CMakeLists.txt @@ -17,17 +17,26 @@ # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # -SET(Event_SOURCES - ${QT_INCLUDES} - SALOME_Event.cxx - SALOME_EventFilter.cxx -) +# --- options --- +# additional preprocessor / compiler flags ADD_DEFINITIONS(${QT_DEFINITIONS}) +# libraries to link to +SET(_link_LIBRARIES ${QT_LIBRARIES}) + +# --- headers --- + +SET(Event_HEADERS Event.h SALOME_Event.h SALOME_EventFilter.h) + +# --- sources --- + +SET(Event_SOURCES SALOME_Event.cxx SALOME_EventFilter.cxx) + +# --- rules --- + ADD_LIBRARY(Event ${Event_SOURCES}) -TARGET_LINK_LIBRARIES(Event ${QT_LIBRARIES}) +TARGET_LINK_LIBRARIES(Event ${_link_LIBRARIES}) INSTALL(TARGETS Event EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS}) -FILE(GLOB COMMON_HEADERS_H "${CMAKE_CURRENT_SOURCE_DIR}/*.h") -INSTALL(FILES ${COMMON_HEADERS_H} DESTINATION ${SALOME_INSTALL_HEADERS}) +INSTALL(FILES ${Event_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})