main
朱子楚\zhuzi 2023-05-05 18:51:40 +08:00
parent 7ceb4f27a3
commit fb4ed03530
3 changed files with 20 additions and 27 deletions

View File

@ -1,10 +1,5 @@
cmake_minimum_required(VERSION 3.16)
if(APPLE)
#
set(CMAKE_OSX_ARCHITECTURES "arm64;x86_64" CACHE STRING "" FORCE)
endif()
project(FluentUI VERSION 0.1 LANGUAGES CXX)
add_subdirectory(src)

View File

@ -1,20 +1,13 @@
cmake_minimum_required(VERSION 3.16)
if(APPLE)
#
set(CMAKE_OSX_ARCHITECTURES "arm64;x86_64" CACHE STRING "" FORCE)
endif()
project(example VERSION 0.1 LANGUAGES CXX)
#
set(CMAKE_AUTOMOC ON)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
#
add_definitions(-DVERSION=1,2,9,0)
#
file(TO_CMAKE_PATH "/" PATH_SEPARATOR)
if(APPLE)
set(CMAKE_OSX_ARCHITECTURES "arm64;x86_64" CACHE STRING "" FORCE)
endif()
#
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
@ -23,6 +16,12 @@ else()
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin/release)
endif()
#
file(TO_CMAKE_PATH "/" PATH_SEPARATOR)
#
add_definitions(-DVERSION=1,2,9,0)
find_package(Qt6 REQUIRED COMPONENTS Quick REQUIRED)
#Cpp
@ -93,7 +92,7 @@ set_target_properties(example PROPERTIES
#
target_link_libraries(example PRIVATE
Qt6::Quick
Qt6::Quick
)
#

View File

@ -1,25 +1,24 @@
cmake_minimum_required(VERSION 3.16)
if(APPLE)
#
set(CMAKE_OSX_ARCHITECTURES "arm64;x86_64" CACHE STRING "" FORCE)
endif()
project(fluentui LANGUAGES CXX)
#
set(CMAKE_AUTOMOC ON)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
#
add_definitions(-DVERSION=1,2,9,0)
if(APPLE)
set(CMAKE_OSX_ARCHITECTURES "arm64;x86_64" CACHE STRING "" FORCE)
endif()
#
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin/debug)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin/debug)
else()
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin/release)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin/release)
endif()
#
add_definitions(-DVERSION=1,2,9,0)
find_package(Qt6 REQUIRED COMPONENTS Core Quick Qml)
#Cpp