💾 Archived View for gmi.noulin.net › gitRepositories › md4c › file › CMakeLists.txt.gmi captured on 2023-07-10 at 18:08:16. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2023-01-29)
-=-=-=-=-=-=-
CMakeLists.txt (873B)
1 2 cmake_minimum_required(VERSION 2.8) 3 project(MD4C C) 4 5 6 set(CMAKE_CONFIGURATION_TYPES Debug Release RelWithDebInfo MinSizeRel) 7 if("${CMAKE_BUILD_TYPE}" STREQUAL "") 8 set(CMAKE_BUILD_TYPE $ENV{CMAKE_BUILD_TYPE}) 9 10 if("${CMAKE_BUILD_TYPE}" STREQUAL "") 11 set(CMAKE_BUILD_TYPE "Release") 12 endif() 13 endif() 14 15 16 if(CMAKE_COMPILER_IS_GNUCC) 17 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall") 18 elseif(MSVC) 19 # Disable warnings about the so-called unsecured functions: 20 add_definitions(/D_CRT_SECURE_NO_WARNINGS) 21 22 # Specify proper C runtime library: 23 set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} /MTd") 24 set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} /MT") 25 set(CMAKE_C_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS_RELEASE} /MT") 26 set(CMAKE_C_FLAGS_MINSIZEREL "${CMAKE_C_FLAGS_RELEASE} /MT") 27 endif() 28 29 30 add_subdirectory(md4c) 31 add_subdirectory(md2html)