feat/update_config #10
@ -27,7 +27,6 @@ option(TILE_BUILD_TESTS "Build tests" OFF)
|
|||||||
option(TILE_BUILD_BENCHMARKS "Build tests" OFF)
|
option(TILE_BUILD_BENCHMARKS "Build tests" OFF)
|
||||||
option(TILE_WITH_OPENSSL "Build with openssl" OFF)
|
option(TILE_WITH_OPENSSL "Build with openssl" OFF)
|
||||||
option(TILE_BUILD_SHARED "Build shared library" ON)
|
option(TILE_BUILD_SHARED "Build shared library" ON)
|
||||||
option(TILE_BUILD_STATIC "Build static library" ON)
|
|
||||||
|
|
||||||
if(CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR)
|
if(CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR)
|
||||||
set(TILE_BUILD_TESTS ON)
|
set(TILE_BUILD_TESTS ON)
|
||||||
@ -226,7 +225,11 @@ if((NOT TILE_HAVE_GETIFADDRS) OR (NOT TILE_HAVE_FREEIFADDRS))
|
|||||||
list(APPEND TILE_SRCS "tile/base/net/detail/android/ifaddrs.c")
|
list(APPEND TILE_SRCS "tile/base/net/detail/android/ifaddrs.c")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_library(tile SHARED ${TILE_SRCS})
|
if (TILE_BUILD_SHARED)
|
||||||
|
add_library(tile SHARED ${TILE_SRCS})
|
||||||
|
else()
|
||||||
|
add_library(tile STATIC ${TILE_SRCS})
|
||||||
|
endif()
|
||||||
set_target_properties(tile PROPERTIES VERSION ${PROJECT_VERSION}
|
set_target_properties(tile PROPERTIES VERSION ${PROJECT_VERSION}
|
||||||
target_precompile_headers(tile PUBLIC inja/inja.h)
|
target_precompile_headers(tile PUBLIC inja/inja.h)
|
||||||
target_precompile_headers(tile PUBLIC inja/string_view.h)
|
target_precompile_headers(tile PUBLIC inja/string_view.h)
|
||||||
|
Loading…
Reference in New Issue
Block a user