2018-05-23 13:35:24 +02:00
|
|
|
# excmd
|
|
|
|
add_library(excmd INTERFACE)
|
|
|
|
target_include_directories(excmd INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}/excmd/src")
|
|
|
|
|
|
|
|
# fmt
|
2018-05-23 00:08:13 +02:00
|
|
|
add_subdirectory(fmt)
|
2018-05-25 14:54:17 +02:00
|
|
|
|
|
|
|
# zlib
|
|
|
|
find_package(ZLIB QUIET)
|
|
|
|
|
|
|
|
if(NOT ZLIB_FOUND)
|
2018-05-25 15:48:13 +02:00
|
|
|
# Disable zlib install
|
|
|
|
set(SKIP_INSTALL_ALL 1)
|
2018-05-25 14:54:17 +02:00
|
|
|
add_subdirectory(zlib)
|
|
|
|
|
|
|
|
target_include_directories(zlib INTERFACE
|
|
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/zlib"
|
|
|
|
"${CMAKE_CURRENT_BINARY_DIR}/zlib")
|
2018-05-25 15:48:13 +02:00
|
|
|
|
|
|
|
install(FILES "${CMAKE_BINARY_DIR}/bin/zlib.dll"
|
|
|
|
DESTINATION "${CMAKE_INSTALL_PREFIX}/bin")
|
2018-05-25 14:54:17 +02:00
|
|
|
else()
|
|
|
|
add_library(zlib INTERFACE)
|
|
|
|
target_link_libraries(zlib INTERFACE ${ZLIB_LIBRARIES})
|
|
|
|
target_include_directories(zlib INTERFACE ${ZLIB_INCLUDE_DIR})
|
|
|
|
endif()
|