mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2025-07-13 03:04:58 +03:00
CMake: add support for Windows (Visual C++ 2017 toolset)
This commit is contained in:
14
src/PenCore/CMakeLists.txt
Normal file
14
src/PenCore/CMakeLists.txt
Normal file
@ -0,0 +1,14 @@
|
||||
if(NOT WIN32)
|
||||
message(FATAL_ERROR "PenCore is needed only on Windows.")
|
||||
endif()
|
||||
|
||||
add_library(PenCore SHARED pencore.c pencore.rc)
|
||||
|
||||
set_target_properties(PenCore
|
||||
PROPERTIES
|
||||
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/src/bin/hamcore"
|
||||
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/src/bin/hamcore"
|
||||
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/src/bin/hamcore"
|
||||
)
|
||||
|
||||
target_link_libraries(PenCore cedar mayaqua)
|
Reference in New Issue
Block a user