mirror of
https://github.com/OPM/ResInsight.git
synced 2026-09-03 20:53:13 -05:00
#2536 Build System AppFwk : Several updates
Simplified automoc Use target_include_directories and target_link_libraries Use CMake 2.8.12
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
cmake_minimum_required (VERSION 2.8)
|
||||
cmake_minimum_required (VERSION 2.8.12)
|
||||
|
||||
# Qt
|
||||
find_package ( Qt4 COMPONENTS QtCore QtGui QtMain )
|
||||
@@ -13,7 +13,7 @@ set( QOBJECT_HEADERS
|
||||
cafCmdFeatureManager.h
|
||||
)
|
||||
|
||||
if ( (${CMAKE_VERSION} VERSION_LESS 2.8.6) OR (NOT CMAKE_AUTOMOC) )
|
||||
if ( NOT CMAKE_AUTOMOC )
|
||||
qt4_wrap_cpp( MOC_FILES_CPP ${QOBJECT_HEADERS} )
|
||||
endif()
|
||||
|
||||
@@ -70,5 +70,4 @@ target_link_libraries ( ${PROJECT_NAME}
|
||||
cafProjectDataModel
|
||||
)
|
||||
|
||||
|
||||
source_group("" FILES ${PROJECT_FILES})
|
||||
source_group("" FILES ${PROJECT_FILES})
|
||||
|
||||
Reference in New Issue
Block a user