cmake_minimum_required(VERSION 3.10) project(dbsec) #cmake_policy(SET CMP0069 NEW) #set(CMAKE_POLICY_DEFAULT_CMP0069 NEW) include(CheckIPOSupported) check_ipo_supported(RESULT _IsIPOSupported) if(_IsIPOSupported) message(STATUS "Turn on INTERPROCEDURAL_OPTIMIZATION") set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE) else() message(STATUS "Turn off INTERPROCEDURAL_OPTIMIZATION") endif() add_definitions(-DSPDLOG_COMPILED_LIB) # setup directory where we should look for cmake modules files list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake") include(GlobalSettings) # precompiled headers option #option(ROSETTA_ENABLE_PCH "using precompiled header to speed up compilation time" OFF) #if(NOT ${CMAKE_VERSION} VERSION_LESS 3.16) # message(STATUS "cmake version is ${CMAKE_VERSION}") # set(ROSETTA_ENABLE_PCH OFF) # message(STATUS "set PCH with Rosetta") #endif() add_subdirectory(python_export)