2a8e3c2d [nostalgia/gfx] Remove unnecessary cast 998066d3 [ox/std] Add comparison functions fefb876f [nostalgia/gfx] Add checks for GCC version for warning suppression 5979e988 [jsoncpp] Up required CMake version a17abe46 [nfde] Up required CMake version d62f9138 [nostalgia/gfx] Suppress some superfluous warnings 12bb7475 [nostalgia/gfx/studio/tilesheet] Adjust pixel line size on Windows df2c7e2b [nostalgia] Update release notes 713aec88 [buildcore] Change mypy invokation 3089cd7a Change builder type to olympic 00638bc8 [nostalgia/gfx/studio/tilesheet] Mark DrawCommands as obsolete if no changes e0021098 [studio] Make undo/redo skip over obsolete commands b4798fd2 [nostalgia/gfx/studio/tilesheet] Make rotate only available for square subsheets or selections 3c804bf6 [studio] Give MakeCopy popup an error message for files that already exist d39d552b [nostalgia/studio] Update icon to higher resolution b7202a2b [nostalgia/player] Disable Keel mods on GBA 4e27a4c1 [nostalgia/core/studio/tilesheet] Fix palette path display update 4ef31762 [nostalgia/core/studio/tilesheet] Cleanup 8b22a8f3 [keel] Make buildUuidMap only read the first 40 bytes of each file d45ff05b [ox/fs] Add new partial file read functions 671dd862 [keel,studio] Add Make Copy option to ProjectExplorer 0abadc18 [studio] Fix QuestionPopup to only emit a response when there is a response 4e068d62 [studio] Fix misrender flash on tab close 4461f99f [studio] Add Ctrl-W shortcut for closing active tab cd1f4bda [studio] Add confirmation for closing file with unsaved changes 47286995 [studio] Add combobox that will take string views 105a1e55 [nostalgia/core/studio/tilesheet] Rework operation ctrls into a dropbox 1bc18e34 [nostalgia/core/studio/tilesheet] Add ability to rotate a selection fb8d295f [nostalgia/core/studio/tilesheet] Add rotate functionality git-subtree-dir: deps/nostalgia git-subtree-split: 2a8e3c2dc44642fd9fef6bc8b645ad966f0277da
64 lines
1.8 KiB
CMake
64 lines
1.8 KiB
CMake
cmake_minimum_required(VERSION 3.19)
|
|
project(nativefiledialog-extended VERSION 1.1.1)
|
|
|
|
set(nfd_ROOT_PROJECT OFF)
|
|
if (CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR)
|
|
set(nfd_ROOT_PROJECT ON)
|
|
endif ()
|
|
|
|
if(NOT DEFINED BUILD_SHARED_LIBS)
|
|
option(BUILD_SHARED_LIBS "Build a shared library instead of static" OFF)
|
|
endif()
|
|
option(NFD_BUILD_TESTS "Build tests for nfd" ${nfd_ROOT_PROJECT})
|
|
# DrinkingTea: begin
|
|
if(NOT DEFINED NFD_INSTALL)
|
|
option(NFD_INSTALL "Generate install target for nfd" ${nfd_ROOT_PROJECT})
|
|
endif()
|
|
# DrinkingTea: end
|
|
|
|
set(nfd_PLATFORM Undefined)
|
|
if(WIN32)
|
|
set(nfd_PLATFORM PLATFORM_WIN32)
|
|
elseif(APPLE)
|
|
set(nfd_PLATFORM PLATFORM_MACOS)
|
|
elseif(UNIX AND NOT APPLE)
|
|
set(nfd_PLATFORM PLATFORM_UNIX)
|
|
endif()
|
|
|
|
# DrinkingTea: begin
|
|
#message("nfd Platform: ${nfd_PLATFORM}")
|
|
# DrinkingTea: end
|
|
|
|
set(nfd_COMPILER Undefined)
|
|
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND CMAKE_CXX_SIMULATE_ID STREQUAL "MSVC")
|
|
# This is clang-cl, which has different compiler options
|
|
set(nfd_COMPILER COMPILER_CLANGCL)
|
|
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
|
|
set(nfd_COMPILER COMPILER_MSVC)
|
|
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang")
|
|
set(nfd_COMPILER COMPILER_GNU)
|
|
endif()
|
|
|
|
# DrinkingTea: begin
|
|
#message("nfd Compiler: ${nfd_COMPILER}")
|
|
# DrinkingTea: end
|
|
|
|
# Use latest C++ by default (should be the best one), but let user override it
|
|
if(NOT DEFINED CMAKE_CXX_STANDARD)
|
|
if(CMAKE_VERSION VERSION_LESS "3.8")
|
|
set (CMAKE_CXX_STANDARD 14)
|
|
elseif(CMAKE_VERSION VERSION_LESS "3.12")
|
|
set (CMAKE_CXX_STANDARD 17)
|
|
elseif(CMAKE_VERSION VERSION_LESS "3.20")
|
|
set (CMAKE_CXX_STANDARD 20)
|
|
else()
|
|
set (CMAKE_CXX_STANDARD 23)
|
|
endif()
|
|
endif()
|
|
|
|
add_subdirectory(src)
|
|
|
|
if(${NFD_BUILD_TESTS})
|
|
add_subdirectory(test)
|
|
endif()
|