mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2026-10-22 01:51:20 +03:00
CMake: add support for Windows (Visual C++ 2017 toolset)
This commit is contained in:
1 parent
5fe90bb180
commit
c1f522c10e
16 files changed
+381
-172
No files matched your search
@@ -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