KawAnime/bindings/CMakeLists.txt

24 lines
660 B
CMake
Raw Normal View History

cmake_minimum_required(VERSION 3.12.0 FATAL_ERROR)
# Name of the project (will be the name of the plugin)
project(kawabinds)
2019-10-23 23:14:24 +00:00
set(CMAKE_CXX_STANDARD 14)
2019-11-02 00:07:20 +00:00
set(CMAKE_CXX_STANDARD_REQUIRED ON)
2019-10-23 23:14:24 +00:00
set(CMAKE_BUILD_TYPE Release)
2019-11-02 00:20:36 +00:00
# Windows things...
2019-11-07 12:42:33 +00:00
if (MSVC)
if (MSVC_VERSION GREATER_EQUAL "1900")
include(CheckCXXCompilerFlag)
CHECK_CXX_COMPILER_FLAG("/std:c++14" _cpp_14_flag_supported)
if (_cpp_14_flag_supported)
add_compile_options("/std:c++14")
endif(_cpp_14_flag_supported)
endif(MSVC_VERSION GREATER_EQUAL "1900")
2019-11-04 01:01:38 +00:00
2019-11-07 14:44:08 +00:00
add_compile_definitions(WIN32_LEAN_AND_MEAN)
2019-11-07 12:42:33 +00:00
endif(MSVC)
2019-11-02 00:20:36 +00:00
add_subdirectory("name_parser")
add_subdirectory("torrent")