mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-05 09:41:28 +08:00
ebda0b9fc2
* Add sfsexp, S-expressions library * Use CMakeLists.txt directly instead of patching it * Use sub-folder for sfsexp header files * Manually set the header files and make sure the resulting include/ folder is the same as with the autotools installation * Add runtime parameter for the DLL * Export all symbols in the DLLAA * Use PUBLIC_HEADER property install of install(FILES...) * Remove boilerplate comments from portfile * Only create static library on windows * Throw error on UWP * Disable some windows UWP warnings * Use VCPKG_TARGET_IS_WINDOWS and put it on top of file * Deleted extra blank lines * Missed one blank line * Use ${PORT} variable instead of the specific "sfsexp" string. This should make it easier to change the name of the port later on. * Use vcpkg_from_github to fetch the release. * Remove extra empty lines
20 lines
532 B
CMake
20 lines
532 B
CMake
cmake_minimum_required(VERSION 3.13)
|
|
project(sexp)
|
|
|
|
if(MSVC)
|
|
add_definitions(-D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_WARNINGS)
|
|
endif()
|
|
|
|
file(GLOB sources src/*.c src/*.h)
|
|
include_directories(src/)
|
|
|
|
add_library(sexp ${sources})
|
|
|
|
set_target_properties(sexp PROPERTIES PUBLIC_HEADER "src/cstring.h;src/faststack.h;src/sexp.h;src/sexp_errors.h;src/sexp_memory.h;src/sexp_ops.h;src/sexp_vis.h")
|
|
|
|
install(TARGETS sexp
|
|
ARCHIVE DESTINATION lib
|
|
LIBRARY DESTINATION lib
|
|
RUNTIME DESTINATION bin
|
|
PUBLIC_HEADER DESTINATION include
|
|
) |