|
|
|
@ -37,7 +37,26 @@ source_group( |
|
|
|
|
######################################################################################################################## |
|
|
|
|
## Configure target DLL |
|
|
|
|
######################################################################################################################## |
|
|
|
|
find_package(CommonLibSSE CONFIG REQUIRED) |
|
|
|
|
|
|
|
|
|
# find_package(CommonLibSSE CONFIG REQUIRED) |
|
|
|
|
|
|
|
|
|
include(FetchContent) |
|
|
|
|
FetchContent_Declare( |
|
|
|
|
CommonLibNG |
|
|
|
|
GIT_REPOSITORY https://github.com/alandtse/CommonLibVR |
|
|
|
|
GIT_TAG a62791cbcb68bd796b303ae7d1a25829d49c6b12 |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
set(ENABLE_SKYRIM_SE ON CACHE BOOL " " FORCE) |
|
|
|
|
set(ENABLE_SKYRIM_AE ON CACHE BOOL " " FORCE) |
|
|
|
|
set(ENABLE_SKYRIM_VR ON CACHE BOOL " " FORCE) |
|
|
|
|
set(BUILD_TESTS OFF CACHE BOOL " " FORCE) |
|
|
|
|
|
|
|
|
|
#FetchContent_MakeAvailable(CommonLibNG) |
|
|
|
|
add_subdirectory("d:/Git/CommonLibSSE-NG" ${CMAKE_BINARY_DIR}/_deps/clib-build) |
|
|
|
|
|
|
|
|
|
get_target_property(commonlib_src_dir CommonLibSSE SOURCE_DIR) |
|
|
|
|
include(${commonlib_src_dir}/cmake/CommonLibSSE.cmake) |
|
|
|
|
|
|
|
|
|
add_commonlibsse_plugin(${PROJECT_NAME} SOURCES ${headers} ${sources}) |
|
|
|
|
add_library("${PROJECT_NAME}::${PROJECT_NAME}" ALIAS "${PROJECT_NAME}") |
|
|
|
|