#------------------------------------------------------------------- # This file is part of the CMake build system for Scol # # The contents of this file are placed in the public domain. Feel # free to make use of it in any way you like. #------------------------------------------------------------------- ####################################################################### # This file takes care of configuring Scol to build with the settings # given in CMake. It creates the necessary config.h file and will # also prepare package files for pkg-config and CMake. ####################################################################### # No static build for the moment set(Scol_LIB_TYPE SHARED) # Create the pkg-config package files on Unix systems if (UNIX) set(Scol_LIB_SUFFIX "") set(Scol_PLUGIN_PREFIX "") set(Scol_PLUGIN_EXT ".so") string(TOLOWER "${CMAKE_BUILD_TYPE}" Scol_BUILD_TYPE) #if (Scol_BUILD_TYPE STREQUAL "debug") # set(SCOL_LIB_SUFFIX "${Scol_LIB_SUFFIX}_d") #endif () set(Scol_ADDITIONAL_LIBS "") set(Scol_CFLAGS "") set(Scol_PREFIX_PATH ${CMAKE_INSTALL_PREFIX}) configure_file(${Scol_TEMPLATES_DIR}/SCOL.pc.in ${Scol_BINARY_DIR}/pkgconfig/SCOL${Scol_LIB_SUFFIX}.pc @ONLY) install(FILES ${Scol_BINARY_DIR}/pkgconfig/SCOL${Scol_LIB_SUFFIX}.pc DESTINATION lib/pkgconfig) endif () if (MSVC) # Enable intrinsics on MSVC in debug mode # Not actually necessary in release mode since /O2 implies /Oi but can't easily add this per build type? add_definitions(/Oi) endif (MSVC)