2019-10-28 16:32:00 +00:00
|
|
|
cmake_minimum_required(VERSION 3.12.0 FATAL_ERROR)
|
2019-10-20 23:07:08 +00:00
|
|
|
|
|
|
|
# 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-10-20 23:07:08 +00:00
|
|
|
|
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
|
|
|
|
2020-04-13 14:39:27 +00:00
|
|
|
add_subdirectory("name_parser")
|
|
|
|
add_subdirectory("torrent")
|