-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
30 lines (22 loc) · 862 Bytes
/
CMakeLists.txt
File metadata and controls
30 lines (22 loc) · 862 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
cmake_minimum_required(VERSION 3.16)
if (WIN32)
set(CMAKE_C_COMPILER "clang-cl.exe")
set(CMAKE_CXX_COMPILER "clang-cl.exe")
set(VCPKG_TARGET_TRIPLET "x64-windows-static" CACHE STRING "Vcpkg triplet")
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
elseif (APPLE)
set(VCPKG_TARGET_TRIPLET "x64-osx-static" CACHE STRING "Vcpkg triplet")
elseif (UNIX)
set(VCPKG_TARGET_TRIPLET "x64-linux-static" CACHE STRING "Vcpkg triplet")
endif()
project(Coplt.Ui)
include(ExternalProject)
set(CMAKE_CXX_STANDARD 23)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
add_definitions(-march=skylake)
add_definitions(-Wno-everything)
add_subdirectory(ThirdParty/emhash)
add_subdirectory(ThirdParty/corrosion)
add_subdirectory(Coplt.Com2)
add_subdirectory(Coplt.Ui.Native)
corrosion_import_crate(MANIFEST_PATH coplt_ui_rusty/Cargo.toml)