-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathCMakeLists.txt
37 lines (26 loc) · 976 Bytes
/
CMakeLists.txt
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
31
32
33
34
35
36
37
cmake_minimum_required(VERSION 3.28)
if (NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "Release" CACHE STRING "Choose Release or Debug" FORCE)
endif()
if (WIN32)
set(VCPKG_TARGET_TRIPLET x64-windows-static)
elseif (UNIX)
set(VCPKG_TARGET_TRIPLET x64-linux)
endif()
set(CMAKE_TOOLCHAIN_FILE "${CMAKE_CURRENT_SOURCE_DIR}/vcpkg/scripts/buildsystems/vcpkg.cmake"
CACHE STRING "Vcpkg toolchain file")
project(polymer VERSION 0.0.5 LANGUAGES CXX)
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
include(GNUInstallDirs)
add_subdirectory(polymer)
set(CPACK_PACKAGE_NAME "Polymer")
set(CPACK_PACKAGE_VENDOR "atxi")
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Polymer - Clean-room Minecraft client implementation")
set(CPACK_PACKAGE_INSTALL_DIRECTORY "Polymer")
set(CMAKE_INSTALL_PREFIX ".")
install(TARGETS polymer
CONFIGURATIONS Debug
RUNTIME DESTINATION Debug)
install(TARGETS polymer
CONFIGURATIONS Release
RUNTIME DESTINATION Release)