2023-05-27 00:30:34 -04:00
|
|
|
cmake_minimum_required(VERSION 3.10)
|
|
|
|
|
|
|
|
|
|
project(tzdb2nx VERSION 1.0)
|
|
|
|
|
|
2024-01-17 16:16:04 -05:00
|
|
|
option(TZDB2NX_ZONEINFO_DIR "Specify a custom zoneinfo directory containing time zone data you wish to use" "")
|
2024-01-18 20:33:04 -05:00
|
|
|
option(TZDB2NX_VERSION "Specify a custom zoneinfo version with the directory" "")
|
|
|
|
|
|
|
|
|
|
if ((TZDB2NX_ZONEINFO_DIR AND NOT TZDB2NX_VERSION) OR (TZDB2NX_VERSION AND NOT TZDB2NX_ZONEINFO_DIR))
|
|
|
|
|
message(FATAL_ERROR "Either TZDB2NX_ZONEINFO_DIR or TZDB2NX_VERSION but not both were defined.")
|
|
|
|
|
endif()
|
2024-01-17 16:16:04 -05:00
|
|
|
|
2023-05-27 16:46:05 -04:00
|
|
|
set(CMAKE_CXX_STANDARD 20)
|
|
|
|
|
|
2024-01-09 17:22:53 -05:00
|
|
|
if (APPLE)
|
|
|
|
|
find_package(Intl REQUIRED)
|
|
|
|
|
endif()
|
|
|
|
|
|
2023-06-16 01:16:02 -04:00
|
|
|
add_subdirectory(externals)
|
2023-05-27 00:30:34 -04:00
|
|
|
add_subdirectory(src)
|