vcpkg/ports/duktape/CMakeLists.txt

21 lines
558 B
CMake
Raw Normal View History

2017-07-14 19:37:25 +01:00
# CMAKE project for duktape
option(SOURCE_PATH "Root directory.")
project (duktape)
2017-07-14 19:37:25 +01:00
file(GLOB_RECURSE DUKTAPE_SOURCES "${SOURCE_PATH}/src/*.c")
file(GLOB_RECURSE DUKTAPE_HEADERS "${SOURCE_PATH}/src/*.h")
if (BUILD_SHARED_LIBS)
2017-07-14 19:37:25 +01:00
add_definitions(-DDUK_F_DLL_BUILD)
endif ()
add_library(duktape ${DUKTAPE_SOURCES} ${DUKTAPE_HEADERS})
2017-07-14 19:37:25 +01:00
set_target_properties("duktape" PROPERTIES PUBLIC_HEADER "${DUKTAPE_HEADERS}")
install(TARGETS duktape
2017-07-14 19:37:25 +01:00
ARCHIVE DESTINATION "lib"
RUNTIME DESTINATION "bin"
PUBLIC_HEADER DESTINATION "include")