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.
99 lines
2.7 KiB
99 lines
2.7 KiB
include_directories(
|
|
${CMAKE_BINARY_DIR}
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
${TQT_PLATFORM_INCLUDE_DIRS}
|
|
${CMAKE_BINARY_DIR}/include
|
|
)
|
|
|
|
link_directories()
|
|
|
|
remove_definitions( -DTQT_THREAD_SUPPORT )
|
|
|
|
|
|
##### tmoc-tools (static)
|
|
|
|
set( target tmoc-tools )
|
|
set( _SRC_ ${CMAKE_SOURCE_DIR}/src/tools/qbuffer.cpp
|
|
${CMAKE_SOURCE_DIR}/src/tools/qptrcollection.cpp
|
|
${CMAKE_SOURCE_DIR}/src/tools/qcstring.cpp
|
|
${CMAKE_SOURCE_DIR}/src/tools/qdatastream.cpp
|
|
${CMAKE_SOURCE_DIR}/src/tools/qdatetime.cpp
|
|
${CMAKE_SOURCE_DIR}/src/tools/qfile.cpp
|
|
${CMAKE_SOURCE_DIR}/src/tools/qdir.cpp
|
|
${CMAKE_SOURCE_DIR}/src/tools/qfileinfo.cpp
|
|
${CMAKE_SOURCE_DIR}/src/tools/qgarray.cpp
|
|
${CMAKE_SOURCE_DIR}/src/tools/qgdict.cpp
|
|
${CMAKE_SOURCE_DIR}/src/tools/qglist.cpp
|
|
${CMAKE_SOURCE_DIR}/src/tools/qglobal.cpp
|
|
${CMAKE_SOURCE_DIR}/src/tools/qgvector.cpp
|
|
${CMAKE_SOURCE_DIR}/src/tools/qiodevice.cpp
|
|
${CMAKE_SOURCE_DIR}/src/tools/qregexp.cpp
|
|
${CMAKE_SOURCE_DIR}/src/tools/qstring.cpp
|
|
${CMAKE_SOURCE_DIR}/src/tools/qlocale.cpp
|
|
${CMAKE_SOURCE_DIR}/src/tools/qunicodetables.cpp
|
|
${CMAKE_SOURCE_DIR}/src/tools/qstringlist.cpp
|
|
${CMAKE_SOURCE_DIR}/src/tools/qtextstream.cpp
|
|
${CMAKE_SOURCE_DIR}/src/tools/qbitarray.cpp
|
|
${CMAKE_SOURCE_DIR}/src/tools/qmap.cpp
|
|
${CMAKE_SOURCE_DIR}/src/tools/qgcache.cpp
|
|
${CMAKE_SOURCE_DIR}/src/tools/qfile_unix.cpp
|
|
${CMAKE_SOURCE_DIR}/src/tools/qdir_unix.cpp
|
|
${CMAKE_SOURCE_DIR}/src/tools/qfileinfo_unix.cpp
|
|
)
|
|
|
|
tde_add_library( ${target} STATIC_PIC
|
|
|
|
SOURCES
|
|
${_SRC_}
|
|
|
|
DEPENDENCIES
|
|
tqt-includes
|
|
)
|
|
set_property( TARGET ${target}-static
|
|
APPEND PROPERTY COMPILE_DEFINITIONS
|
|
QT_MOC TQT_NO_CODECS QT_LITE_UNICODE TQT_NO_COMPONENT TQT_NO_STL TQT_NO_COMPRESS
|
|
)
|
|
|
|
|
|
##### tmoc-codecs (static)
|
|
|
|
set( target tmoc-codecs )
|
|
set( _SRC_ ${CMAKE_SOURCE_DIR}/src/codecs/qtextcodec.cpp
|
|
${CMAKE_SOURCE_DIR}/src/codecs/qutfcodec.cpp
|
|
)
|
|
|
|
tde_add_library( ${target} STATIC_PIC
|
|
|
|
SOURCES
|
|
${_SRC_}
|
|
|
|
DEPENDENCIES
|
|
tqt-includes
|
|
)
|
|
set_property( TARGET ${target}-static
|
|
APPEND PROPERTY COMPILE_DEFINITIONS
|
|
QT_MOC TQT_NO_CODECS QT_LITE_UNICODE TQT_NO_COMPONENT TQT_NO_STL TQT_NO_COMPRESS
|
|
)
|
|
|
|
|
|
##### tmoc (executable)
|
|
|
|
set( target tmoc )
|
|
set( _SRC_ moc_yacc.cpp )
|
|
|
|
tde_add_executable( ${target}
|
|
|
|
SOURCES
|
|
${_SRC_}
|
|
LINK
|
|
tmoc-tools-static
|
|
tmoc-codecs-static
|
|
|
|
DEPENDENCIES
|
|
tmoc-tools-static
|
|
tmoc-codecs-static
|
|
|
|
DESTINATION ${BIN_INSTALL_DIR}
|
|
)
|