mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-24 11:02:35 +08:00
5d1751dfda
* [open62541, duktape] Update hash for pip. * [duktape] Fix build error on Linux * [open62541, duktape] Update download linkage for pip. * [open62541] Resolve conflict * [open62541] Resolve conflict * [open62541] Remove homepage
24 lines
558 B
CMake
24 lines
558 B
CMake
cmake_minimum_required(VERSION 3.14)
|
|
|
|
project (duktape)
|
|
|
|
file(GLOB_RECURSE DUKTAPE_SOURCES "src/*.c")
|
|
file(GLOB_RECURSE DUKTAPE_HEADERS "src/*.h")
|
|
|
|
if (BUILD_SHARED_LIBS)
|
|
add_definitions(-DDUK_F_DLL_BUILD)
|
|
endif ()
|
|
|
|
include_directories("src/")
|
|
|
|
add_library(duktape ${DUKTAPE_SOURCES} ${DUKTAPE_HEADERS})
|
|
|
|
set_target_properties("duktape" PROPERTIES PUBLIC_HEADER "${DUKTAPE_HEADERS}")
|
|
|
|
install(TARGETS duktape
|
|
EXPORT duktape-targets
|
|
ARCHIVE DESTINATION "lib"
|
|
RUNTIME DESTINATION "bin"
|
|
PUBLIC_HEADER DESTINATION "include")
|
|
|