mirror of
https://github.com/HIllya51/LunaHook.git
synced 2024-10-22 23:18:16 +08:00
39 lines
919 B
CMake
39 lines
919 B
CMake
|
cmake_minimum_required(VERSION 3.16)
|
||
|
|
||
|
project(LunaHook)
|
||
|
|
||
|
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
|
||
|
|
||
|
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
|
||
|
|
||
|
add_compile_options(
|
||
|
/std:c++17
|
||
|
/MP
|
||
|
/wd4018
|
||
|
/wd4819
|
||
|
/wd4244
|
||
|
/wd4267
|
||
|
/DVERSION="${VERSION}"
|
||
|
/DUNICODE
|
||
|
/D_UNICODE
|
||
|
)
|
||
|
|
||
|
if(${CMAKE_SIZEOF_VOID_P} EQUAL 8)
|
||
|
set(bitappendix "64")
|
||
|
else()
|
||
|
set(bitappendix "32")
|
||
|
endif()
|
||
|
|
||
|
set(CMAKE_FINAL_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/builds/${CMAKE_BUILD_TYPE}_x${bitappendix})
|
||
|
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_directories(.)
|
||
|
include(libs/libs.cmake)
|
||
|
|
||
|
include_directories(include)
|
||
|
|
||
|
add_subdirectory(include)
|
||
|
add_subdirectory(LunaHook)
|
||
|
add_subdirectory(LunaHost)
|