2024-01-29 03:24:33 +08:00
|
|
|
cmake_minimum_required(VERSION 3.16)
|
|
|
|
|
|
|
|
project(LunaPlugins)
|
|
|
|
|
2024-11-15 03:21:30 +08:00
|
|
|
option(WINXP "WINXP" OFF)
|
|
|
|
if(WINXP)
|
|
|
|
add_definitions(-DWINXP=${WINXP})
|
|
|
|
endif()
|
2024-01-29 03:24:33 +08:00
|
|
|
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
|
|
|
|
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
|
|
|
|
|
2024-11-05 15:46:45 +08:00
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
|
|
add_definitions(-DUNICODE -D_UNICODE)
|
2024-01-29 03:24:33 +08:00
|
|
|
add_compile_options(
|
|
|
|
/wd4018
|
|
|
|
)
|
|
|
|
|
|
|
|
if(${CMAKE_SIZEOF_VOID_P} EQUAL 8)
|
|
|
|
set(CMAKE_FINAL_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/builds/${CMAKE_BUILD_TYPE}_x64)
|
|
|
|
else()
|
|
|
|
set(CMAKE_FINAL_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/builds/${CMAKE_BUILD_TYPE}_x86)
|
|
|
|
endif()
|
|
|
|
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY $<1:${CMAKE_FINAL_OUTPUT_DIRECTORY}>)
|
|
|
|
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY $<1:${CMAKE_FINAL_OUTPUT_DIRECTORY}>)
|
|
|
|
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY $<1:${CMAKE_FINAL_OUTPUT_DIRECTORY}>)
|
|
|
|
|
|
|
|
include(libs/libs.cmake)
|
|
|
|
|
2024-11-06 07:28:55 +08:00
|
|
|
include(${CMAKE_SOURCE_DIR}/version.cmake)
|
2024-05-01 19:58:58 +08:00
|
|
|
|
2024-05-03 01:54:36 +08:00
|
|
|
add_library(pch pch.cpp)
|
|
|
|
target_precompile_headers(pch PUBLIC pch.h)
|
|
|
|
|
|
|
|
|
2024-01-29 03:24:33 +08:00
|
|
|
add_subdirectory(exec)
|
|
|
|
add_subdirectory(winsharedutils)
|
2024-05-03 01:54:36 +08:00
|
|
|
add_subdirectory(hookmagpie)
|
2024-05-19 16:54:50 +08:00
|
|
|
add_subdirectory(shareddllproxy)
|
2024-11-15 03:21:30 +08:00
|
|
|
add_subdirectory(LunaOCR)
|
|
|
|
add_subdirectory(winrtutils)
|
2024-11-15 03:50:32 +08:00
|
|
|
if(NOT WINXP)
|
2024-11-04 23:10:41 +08:00
|
|
|
add_subdirectory(wcocr)
|
2024-11-15 03:21:30 +08:00
|
|
|
endif()
|