2017-09-05 18:07:05 +08:00
|
|
|
cmake_minimum_required(VERSION 2.8.12)
|
|
|
|
|
2017-09-12 18:18:39 +08:00
|
|
|
##tool chain file.cmake
|
|
|
|
set(CMAKE_C_FLAGS "-g -Wall -O3 -m32")
|
|
|
|
set( CMAKE_CXX_FLAGS $(CMAKE_C_FLAGS) )
|
|
|
|
|
|
|
|
#cmake cross build find_library to find in this directory
|
|
|
|
set(CMAKE_COMPILER_IS_GNUCXX TRUE)
|
|
|
|
|
|
|
|
set( CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
|
|
|
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
|
|
|
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|
|
|
|
|
|
|
|
#Qt Tools
|
|
|
|
set(CMAKE_AUTOMOC ON)
|
|
|
|
set(CMAKE_AUTOUIC ON)
|
|
|
|
set(CMAKE_AUTORCC ON)
|
|
|
|
|
|
|
|
#others
|
|
|
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
|
|
|
set(CMAKE_INCLUDE_DIRECTORIES_PROJECT_BEFORE ON)
|
|
|
|
set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS ON)
|
|
|
|
set(BUILD_SHARED_LIBS ON)
|
|
|
|
set( CMAKE_VERBOSE_MAKEFILE OFF )
|
|
|
|
set(CMAKE_BUILD_TYPE Debug)
|
|
|
|
#set ( CMAKE_TOOLCHAIN_FILE ${CMAKE_SOURCE_DIR}/cmake/build.cmake )
|
2017-09-05 18:07:05 +08:00
|
|
|
|
2017-09-09 15:09:30 +08:00
|
|
|
project(App0OnQQt)
|
|
|
|
set( ${PROJECT_NAME}_VERSION_MAJOR 0)
|
|
|
|
set( ${PROJECT_NAME}_VERSION_MINOR 1)
|
2017-09-05 18:07:05 +08:00
|
|
|
|
2017-09-12 18:18:39 +08:00
|
|
|
add_definitions( -D__QT5__ -D__WIN__ -DUNICODE )
|
2017-09-05 18:07:05 +08:00
|
|
|
|
|
|
|
add_subdirectory( src )
|
2017-09-09 15:09:30 +08:00
|
|
|
add_subdirectory( examples/qqtframe )
|
2017-09-05 18:07:05 +08:00
|
|
|
#add_subdirectory( examples/animationframe )
|
|
|
|
#add_subdirectory( examples/cmdwidget )
|
|
|
|
#add_subdirectory( examples/console )
|
|
|
|
#add_subdirectory( examples/ffmpegplayer )
|
|
|
|
#add_subdirectory( examples/ftpclient )
|
|
|
|
#add_subdirectory( examples/httpclient )
|
|
|
|
#add_subdirectory( examples/liveplayer )
|
2017-09-09 15:09:30 +08:00
|
|
|
#add_subdirectory( examples/webkit )
|
2017-09-05 18:07:05 +08:00
|
|
|
|
2017-09-12 18:18:39 +08:00
|
|
|
#set ( CMAKE_INSTALL_PREFIX ${CMAKE_SOURCE_DIR}/../../b1-Product/a0-qqtbased/Application)
|