2018-02-27 10:20:46 -06:00
|
|
|
cmake_minimum_required (VERSION 2.8.12)
|
2012-05-18 02:45:23 -05:00
|
|
|
|
|
|
|
project (cafAnimControl)
|
|
|
|
|
2015-07-29 07:19:43 -05:00
|
|
|
# Qt
|
|
|
|
find_package ( Qt4 COMPONENTS QtCore QtGui QtMain )
|
|
|
|
include (${QT_USE_FILE})
|
|
|
|
|
2012-05-18 02:45:23 -05:00
|
|
|
set( QOBJECT_HEADERS
|
|
|
|
cafFrameAnimationControl.h
|
|
|
|
cafAnimationToolBar.h
|
|
|
|
)
|
|
|
|
|
2018-02-27 10:20:46 -06:00
|
|
|
if ( NOT CMAKE_AUTOMOC )
|
2012-09-18 08:21:04 -05:00
|
|
|
qt4_wrap_cpp( MOC_FILES_CPP ${QOBJECT_HEADERS} )
|
|
|
|
endif()
|
2012-05-18 02:45:23 -05:00
|
|
|
|
|
|
|
# NOTE! Resources in this subfolder appends to the variable QRC_FILES in parent scope
|
|
|
|
# CMakeList.txt in the application folder (parent scope) must use the following syntax
|
|
|
|
# to make sure the QRC_FILES variable contains appended files in subfolders
|
|
|
|
|
|
|
|
# set( QRC_FILES
|
|
|
|
# ${QRC_FILES}
|
|
|
|
# Resources/MyaApplication.qrc
|
|
|
|
# )
|
|
|
|
|
|
|
|
set( QRC_FILES
|
|
|
|
${QRC_FILES}
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/Resources/cafAnimControl.qrc
|
|
|
|
PARENT_SCOPE
|
|
|
|
)
|
|
|
|
|
2018-02-27 10:20:46 -06:00
|
|
|
set( PROJECT_FILES
|
|
|
|
cafFrameAnimationControl.h
|
2012-05-18 02:45:23 -05:00
|
|
|
cafFrameAnimationControl.cpp
|
2018-02-27 10:20:46 -06:00
|
|
|
cafAnimationToolBar.h
|
2012-05-18 02:45:23 -05:00
|
|
|
cafAnimationToolBar.cpp
|
2018-02-27 10:20:46 -06:00
|
|
|
)
|
|
|
|
|
|
|
|
add_library( ${PROJECT_NAME}
|
|
|
|
${PROJECT_FILES}
|
2012-05-18 02:45:23 -05:00
|
|
|
${MOC_FILES_CPP}
|
|
|
|
)
|
2018-02-27 10:20:46 -06:00
|
|
|
|
|
|
|
target_include_directories(${PROJECT_NAME}
|
|
|
|
PUBLIC
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
|
|
)
|
|
|
|
|
|
|
|
source_group("" FILES ${PROJECT_FILES})
|