mirror of
https://gitee.com/houstudio/Cdroid.git
synced 2024-12-05 21:58:44 +08:00
31 lines
641 B
CMake
Executable File
31 lines
641 B
CMake
Executable File
project(CDROID C CXX)
|
|
cmake_minimum_required (VERSION 3.2)
|
|
set(CMAKE_POSITION_INDEPENDENT_CODE TRUE)
|
|
set(CMAKE_CXX_STANDARD 14)
|
|
|
|
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake/modules)
|
|
include(cmake/common_functions.cmake)
|
|
include(cmake/options.cmake)
|
|
|
|
set(DISABLE_FORCE_DEBUG_POSTFIX ON)
|
|
|
|
if (CMAKE_BUILD_TYPE STREQUAL Debug)
|
|
add_definitions(-DDEBUG)
|
|
endif()
|
|
|
|
add_subdirectory(src/porting)
|
|
add_subdirectory(src/gui)
|
|
add_subdirectory(src/modules)
|
|
add_subdirectory(src/3rdparty/pinyin)
|
|
|
|
add_subdirectory(apps)
|
|
|
|
add_subdirectory(tests)
|
|
|
|
|
|
if(BUILD_DOCS)
|
|
include(cmake/build_doxygen.cmake)
|
|
build_doxygen()
|
|
endif()
|
|
|