Ignore:
Timestamp:
Oct 27, 2018, 7:51:31 PM (2 years ago)
Author:
tbretz
Message:
Defining a preprocessor directive for our __CMAKE__ build avoids to produce two additional unnecessray output files.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/CMakeLists.txt

    r19303 r19312  
    205205SET(CMAKE_CXX_STANDARD 11)
    206206
     207ADD_DEFINITIONS(-D__CMAKE__)
     208
    207209SET(CMAKE_CXX_FLAGS
    208210        "${CMAKE_CXX_FLAGS} -Wall -Winit-self -Wpointer-arith \
     
    210212         -Wnon-virtual-dtor -Wshadow -Wno-unknown-pragmas") # -Wextra
    211213
    212 # FIXME: Move that to config.h.in
    213214# -D__MARS__
    214215SET(CMAKE_CXX_FLAGS
     
    726727# ********************************************************
    727728
    728 INCLUDE_DIRECTORIES(/usr/include/qwt-qt4 gui gui/RawEventsViewer)
    729 FILE(WRITE ${CMAKE_BINARY_DIR}/design.h "#include \"ui_design.h\"")
    730 FILE(WRITE ${CMAKE_BINARY_DIR}/viewer.h "#include \"ui_viewer.h\"")
     729INCLUDE_DIRECTORIES(${QWT_INCLUDE_DIR}/qwt-qt4 gui gui/RawEventsViewer)
    731730
    732731# --------------------------------------------------------
     
    739738        gui/QCameraWidget.h
    740739        gui/Q3DCameraWidget.h)
     740
     741SET(_moc ${CMAKE_BINARY_DIR}/${_current_MOC})
    741742
    742743ADD_EXECUTABLE(viewer
Note: See TracChangeset for help on using the changeset viewer.