1
0
mirror of https://gitee.com/drabel/LibQQt.git synced 2025-01-04 10:18:44 +08:00
LibQQt/CMakeLists.txt

46 lines
1.3 KiB
CMake
Raw Normal View History

2017-09-05 18:07:05 +08:00
cmake_minimum_required(VERSION 2.8.12)
##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
project(App0OnQQt)
set( ${PROJECT_NAME}_VERSION_MAJOR 0)
set( ${PROJECT_NAME}_VERSION_MINOR 1)
2017-09-05 18:07:05 +08:00
add_definitions( -D__QT5__ -D__WIN__ -DUNICODE )
2017-09-05 18:07:05 +08:00
add_subdirectory( src )
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 )
#add_subdirectory( examples/webkit )
2017-09-05 18:07:05 +08:00
#set ( CMAKE_INSTALL_PREFIX ${CMAKE_SOURCE_DIR}/../../b1-Product/a0-qqtbased/Application)