You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
80 lines
2.3 KiB
80 lines
2.3 KiB
|
|
# prepare includes
|
|
|
|
file( GLOB_RECURSE _includes RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.h )
|
|
list( SORT _includes )
|
|
|
|
unset( _private_includes )
|
|
foreach( _include IN LISTS _includes )
|
|
|
|
# skip 3rdparty, attic, moc, sql drivers and obsolete includes
|
|
if( "${_include}" MATCHES "^(3rdparty/|attic/|moc/|sql/drivers/|kernel/(qt_pch|qwindow))" )
|
|
list( REMOVE_ITEM _includes "${_include}" )
|
|
endif()
|
|
|
|
# split private includes
|
|
if( "${_include}" MATCHES "_p.h$" )
|
|
list( REMOVE_ITEM _includes "${_include}" )
|
|
list( APPEND _private_includes "${_include}" )
|
|
endif()
|
|
|
|
endforeach( _include )
|
|
|
|
tqt_install_includes( ${_includes} )
|
|
tqt_install_includes( ${_private_includes} DESTINATION "private" )
|
|
|
|
|
|
# subdirectories
|
|
|
|
set( qtlib_embed "" )
|
|
|
|
add_subdirectory( tools )
|
|
add_subdirectory( kernel )
|
|
add_subdirectory( codecs )
|
|
add_subdirectory( moc )
|
|
|
|
tde_conditional_add_subdirectory( BUILD_STYLES styles )
|
|
tde_conditional_add_subdirectory( BUILD_CANVAS canvas )
|
|
tde_conditional_add_subdirectory( BUILD_DIALOGS dialogs )
|
|
tde_conditional_add_subdirectory( BUILD_INPUTMETHOD inputmethod )
|
|
tde_conditional_add_subdirectory( BUILD_TABLE table )
|
|
tde_conditional_add_subdirectory( BUILD_WIDGETS widgets )
|
|
tde_conditional_add_subdirectory( BUILD_WORKSPACE workspace )
|
|
tde_conditional_add_subdirectory( BUILD_XML xml )
|
|
tde_conditional_add_subdirectory( BUILD_NETWORK network )
|
|
tde_conditional_add_subdirectory( BUILD_OPENGL opengl )
|
|
tde_conditional_add_subdirectory( BUILD_SQL sql )
|
|
|
|
|
|
##### tqt3 library
|
|
|
|
configure_file( ${TDE_CMAKE_TEMPLATES}/tde_dummy_cpp.cmake dummy.cpp COPYONLY )
|
|
|
|
tde_add_library( tqt-mt SHARED
|
|
|
|
SOURCES
|
|
dummy.cpp
|
|
EMBED
|
|
${qtlib_embed}
|
|
LINK
|
|
${CMAKE_THREAD_LIBS_INIT}
|
|
|
|
VERSION 3.5.0
|
|
|
|
DESTINATION ${LIB_INSTALL_DIR}
|
|
)
|
|
|
|
|
|
##### other data
|
|
|
|
string( REGEX REPLACE "^${CMAKE_INSTALL_PREFIX}" "\${prefix}" PC_EXEC_PREFIX ${EXEC_INSTALL_PREFIX} )
|
|
string( REGEX REPLACE "^${CMAKE_INSTALL_PREFIX}" "\${prefix}" QT_INSTALL_HEADERS ${INCLUDE_INSTALL_DIR} )
|
|
string( REGEX REPLACE "^${CMAKE_INSTALL_PREFIX}" "\${prefix}" QT_INSTALL_LIBS ${LIB_INSTALL_DIR} )
|
|
|
|
configure_file( ${PROJECT_NAME}.pc.cmake ${PROJECT_NAME}.pc @ONLY )
|
|
|
|
install(
|
|
FILES ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.pc
|
|
DESTINATION ${PKGCONFIG_INSTALL_DIR}
|
|
)
|