Sfoglia il codice sorgente

build: minor changes

Michele Caini 2 anni fa
parent
commit
22fada19ec
3 ha cambiato i file con 0 aggiunte e 24 eliminazioni
  1. 0 20
      CMakeLists.txt
  2. 0 2
      docs/CMakeLists.txt
  3. 0 2
      test/CMakeLists.txt

+ 0 - 20
CMakeLists.txt

@@ -1,21 +1,15 @@
-#
 # EnTT
 # EnTT
-#
 
 
 cmake_minimum_required(VERSION 3.15.7)
 cmake_minimum_required(VERSION 3.15.7)
 
 
-#
 # Read project version
 # Read project version
-#
 
 
 set(ENTT_VERSION_REGEX "#define ENTT_VERSION_.*[ \t]+(.+)")
 set(ENTT_VERSION_REGEX "#define ENTT_VERSION_.*[ \t]+(.+)")
 file(STRINGS "${CMAKE_CURRENT_SOURCE_DIR}/src/entt/config/version.h" ENTT_VERSION REGEX ${ENTT_VERSION_REGEX})
 file(STRINGS "${CMAKE_CURRENT_SOURCE_DIR}/src/entt/config/version.h" ENTT_VERSION REGEX ${ENTT_VERSION_REGEX})
 list(TRANSFORM ENTT_VERSION REPLACE ${ENTT_VERSION_REGEX} "\\1")
 list(TRANSFORM ENTT_VERSION REPLACE ${ENTT_VERSION_REGEX} "\\1")
 string(JOIN "." ENTT_VERSION ${ENTT_VERSION})
 string(JOIN "." ENTT_VERSION ${ENTT_VERSION})
 
 
-#
 # Project configuration
 # Project configuration
-#
 
 
 project(
 project(
     EnTT
     EnTT
@@ -34,15 +28,11 @@ message(VERBOSE "* ${PROJECT_NAME} v${PROJECT_VERSION} (${CMAKE_BUILD_TYPE})")
 message(VERBOSE "* Copyright (c) 2017-2023 Michele Caini <michele.caini@gmail.com>")
 message(VERBOSE "* Copyright (c) 2017-2023 Michele Caini <michele.caini@gmail.com>")
 message(VERBOSE "*")
 message(VERBOSE "*")
 
 
-#
 # CMake stuff
 # CMake stuff
-#
 
 
 list(INSERT CMAKE_MODULE_PATH 0 ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules)
 list(INSERT CMAKE_MODULE_PATH 0 ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules)
 
 
-#
 # Compiler stuff
 # Compiler stuff
-#
 
 
 option(ENTT_USE_LIBCPP "Use libc++ by adding -stdlib=libc++ flag if available." OFF)
 option(ENTT_USE_LIBCPP "Use libc++ by adding -stdlib=libc++ flag if available." OFF)
 option(ENTT_USE_SANITIZER "Enable sanitizers by adding -fsanitize=address -fno-omit-frame-pointer -fsanitize=undefined flags if available." OFF)
 option(ENTT_USE_SANITIZER "Enable sanitizers by adding -fsanitize=address -fno-omit-frame-pointer -fsanitize=undefined flags if available." OFF)
@@ -80,9 +70,7 @@ if(ENTT_USE_SANITIZER)
     endif()
     endif()
 endif()
 endif()
 
 
-#
 # Add EnTT target
 # Add EnTT target
-#
 
 
 option(ENTT_INCLUDE_HEADERS "Add all EnTT headers to the EnTT target." OFF)
 option(ENTT_INCLUDE_HEADERS "Add all EnTT headers to the EnTT target." OFF)
 option(ENTT_INCLUDE_NATVIS "Add EnTT natvis files to the EnTT target." OFF)
 option(ENTT_INCLUDE_NATVIS "Add EnTT natvis files to the EnTT target." OFF)
@@ -220,9 +208,7 @@ if(ENTT_HAS_LIBCPP)
     target_compile_options(EnTT BEFORE INTERFACE -stdlib=libc++)
     target_compile_options(EnTT BEFORE INTERFACE -stdlib=libc++)
 endif()
 endif()
 
 
-#
 # Install pkg-config file
 # Install pkg-config file
-#
 
 
 include(JoinPaths)
 include(JoinPaths)
 
 
@@ -241,9 +227,7 @@ install(
     DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig
     DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig
 )
 )
 
 
-#
 # Install EnTT
 # Install EnTT
-#
 
 
 include(CMakePackageConfigHelpers)
 include(CMakePackageConfigHelpers)
 
 
@@ -289,9 +273,7 @@ install(DIRECTORY src/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
 
 
 export(PACKAGE EnTT)
 export(PACKAGE EnTT)
 
 
-#
 # Tests
 # Tests
-#
 
 
 option(ENTT_BUILD_TESTING "Enable building tests." OFF)
 option(ENTT_BUILD_TESTING "Enable building tests." OFF)
 
 
@@ -310,9 +292,7 @@ if(ENTT_BUILD_TESTING)
     add_subdirectory(test)
     add_subdirectory(test)
 endif()
 endif()
 
 
-#
 # Documentation
 # Documentation
-#
 
 
 option(ENTT_BUILD_DOCS "Enable building with documentation." OFF)
 option(ENTT_BUILD_DOCS "Enable building with documentation." OFF)
 
 

+ 0 - 2
docs/CMakeLists.txt

@@ -1,6 +1,4 @@
-#
 # Doxygen configuration (documentation)
 # Doxygen configuration (documentation)
-#
 
 
 FetchContent_Declare(
 FetchContent_Declare(
     doxygen-awesome-css
     doxygen-awesome-css

+ 0 - 2
test/CMakeLists.txt

@@ -1,6 +1,4 @@
-#
 # Tests configuration
 # Tests configuration
-#
 
 
 include(FetchContent)
 include(FetchContent)
 include(CheckCXXSourceCompiles)
 include(CheckCXXSourceCompiles)