mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Copied in RPM/Fwk/AppFwk
Commented out use of stipple line, as VizFwk is not update yet
This commit is contained in:
@@ -1,7 +1,14 @@
|
||||
cmake_minimum_required (VERSION 2.8)
|
||||
|
||||
# Qt
|
||||
find_package ( Qt4 COMPONENTS QtCore QtGui QtMain QtOpenGl )
|
||||
include (${QT_USE_FILE})
|
||||
|
||||
project ( cafTestApplication )
|
||||
|
||||
|
||||
option(USE_COMMAND_FRAMEWORK "Use Caf Command Framework" ON)
|
||||
|
||||
# Qt MOC
|
||||
set ( QT_MOC_HEADERS
|
||||
MainWindow.h
|
||||
@@ -23,25 +30,58 @@ qt4_add_resources( QRC_FILES_CPP
|
||||
)
|
||||
|
||||
include_directories (
|
||||
${CMAKE_SOURCE_DIR}/cafProjectDataModel
|
||||
${CMAKE_SOURCE_DIR}/cafUserInterface
|
||||
${cafProjectDataModel_SOURCE_DIR}
|
||||
${cafUserInterface_SOURCE_DIR}
|
||||
)
|
||||
|
||||
# add the executable
|
||||
add_executable ( ${PROJECT_NAME}
|
||||
if (USE_COMMAND_FRAMEWORK)
|
||||
include_directories (
|
||||
${cafCommand_SOURCE_DIR}
|
||||
)
|
||||
ADD_DEFINITIONS(-DTAP_USE_COMMAND_FRAMEWORK)
|
||||
endif(USE_COMMAND_FRAMEWORK)
|
||||
|
||||
|
||||
include_directories (
|
||||
${cafPdmCore_SOURCE_DIR}
|
||||
${cafPdmUiCore_SOURCE_DIR}
|
||||
${cafPdmXml_SOURCE_DIR}
|
||||
)
|
||||
|
||||
set( PROJECT_FILES
|
||||
Main.cpp
|
||||
MainWindow.cpp
|
||||
WidgetLayoutTest.cpp
|
||||
)
|
||||
|
||||
|
||||
# add the executable
|
||||
add_executable ( ${PROJECT_NAME}
|
||||
${PROJECT_FILES}
|
||||
${MOC_FILES_CPP}
|
||||
${QRC_FILES_CPP}
|
||||
)
|
||||
|
||||
target_link_libraries ( ${PROJECT_NAME}
|
||||
set (TAP_LINK_LIBRARIES
|
||||
cafUserInterface
|
||||
cafProjectDataModel
|
||||
cafPdmXml
|
||||
${QT_LIBRARIES}
|
||||
)
|
||||
|
||||
if (USE_COMMAND_FRAMEWORK)
|
||||
set (TAP_LINK_LIBRARIES
|
||||
${TAP_LINK_LIBRARIES}
|
||||
cafCommand
|
||||
)
|
||||
endif(USE_COMMAND_FRAMEWORK)
|
||||
|
||||
|
||||
target_link_libraries ( ${PROJECT_NAME}
|
||||
${TAP_LINK_LIBRARIES}
|
||||
)
|
||||
|
||||
source_group("" FILES ${PROJECT_FILES})
|
||||
|
||||
# Copy Qt Dlls
|
||||
if (MSVC)
|
||||
set (QTLIBLIST QtCore QtGui QtOpenGl)
|
||||
|
||||
Reference in New Issue
Block a user