mirror of
https://github.com/starr-dusT/tzdb_to_nx
synced 2024-03-05 21:18:52 -08:00
d35fcb2558
Previously it was still using the submodule's version.
20 lines
605 B
CMake
20 lines
605 B
CMake
cmake_minimum_required(VERSION 3.10)
|
|
|
|
project(tzdb2nx VERSION 1.0)
|
|
|
|
option(TZDB2NX_ZONEINFO_DIR "Specify a custom zoneinfo directory containing time zone data you wish to use" "")
|
|
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()
|
|
|
|
set(CMAKE_CXX_STANDARD 20)
|
|
|
|
if (APPLE)
|
|
find_package(Intl REQUIRED)
|
|
endif()
|
|
|
|
add_subdirectory(externals)
|
|
add_subdirectory(src)
|