[libconfig] use find path

This commit is contained in:
atkawa7 2017-06-29 15:18:58 -07:00
parent c588de6b8f
commit 03fde38584
2 changed files with 7 additions and 6 deletions

View File

@ -20,7 +20,12 @@ set(CPP_SOURCES
)
include_directories(lib)
include_directories(lib/win32)
find_path(DIRENT_H dirent.h)
find_path(STDINT_H stdint.h)
include_directories(${DIRENT_H})
include_directories(${STDINT_H})
add_library(libconfig ${C_SOURCES})
add_library(libconfig++ ${C_SOURCES} ${CPP_SOURCES})

View File

@ -15,12 +15,8 @@ vcpkg_apply_patches(
"${CMAKE_CURRENT_LIST_DIR}/fix-scanner-header-msvc-patch.patch"
)
set(WIN_SRC ${SOURCE_PATH}/lib/win32)
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
file(COPY ${CMAKE_CURRENT_LIST_DIR}/scandir.c DESTINATION ${WIN_SRC})
file(COPY ${CURRENT_INSTALLED_DIR}/include/dirent.h DESTINATION ${WIN_SRC})
file(COPY ${CURRENT_INSTALLED_DIR}/include/stdint.h DESTINATION ${WIN_SRC})
file(COPY ${CMAKE_CURRENT_LIST_DIR}/scandir.c DESTINATION ${SOURCE_PATH}/lib/win32)
vcpkg_configure_cmake(