early-access version 2853
This commit is contained in:
46
externals/vcpkg/ports/vlpp/CMakeLists.txt
vendored
Executable file
46
externals/vcpkg/ports/vlpp/CMakeLists.txt
vendored
Executable file
@@ -0,0 +1,46 @@
|
||||
cmake_minimum_required(VERSION 3.3.0)
|
||||
|
||||
project(Vlpp VERSION 0.10.0.0 LANGUAGES CXX)
|
||||
|
||||
# Sources
|
||||
set(SRCS
|
||||
Import/Vlpp.cpp
|
||||
Import/VlppWorkflowLibrary.cpp
|
||||
Import/VlppWorkflowCompiler.cpp
|
||||
Import/VlppWorkflowRuntime.cpp)
|
||||
|
||||
if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /bigobj")
|
||||
endif()
|
||||
|
||||
if(NOT CMAKE_CXX_STANDARD)
|
||||
set(CMAKE_CXX_STANDARD 14)
|
||||
endif()
|
||||
|
||||
# Create and configure the target
|
||||
add_library(Vlpp ${SRCS})
|
||||
|
||||
# target_compile_definitions
|
||||
target_compile_definitions(Vlpp PRIVATE UNICODE)
|
||||
target_compile_definitions(Vlpp PRIVATE _UNICODE)
|
||||
|
||||
target_include_directories(Vlpp PRIVATE ${PROJECT_SOURCE_DIR}/Import)
|
||||
|
||||
# Install
|
||||
install(
|
||||
TARGETS Vlpp
|
||||
RUNTIME DESTINATION "bin"
|
||||
LIBRARY DESTINATION "lib"
|
||||
ARCHIVE DESTINATION "lib"
|
||||
)
|
||||
|
||||
if (NOT DEFINED SKIP_HEADERS)
|
||||
install(
|
||||
FILES
|
||||
Import/Vlpp.h
|
||||
Import/VlppWorkflowLibrary.h
|
||||
Import/VlppWorkflowCompiler.h
|
||||
Import/VlppWorkflowRuntime.h
|
||||
DESTINATION "include"
|
||||
)
|
||||
endif()
|
||||
Reference in New Issue
Block a user