Skip to content

Commit

Permalink
CMakeLists.txt: dont include base (#673)
Browse files Browse the repository at this point in the history
* CMakeLists.txt: dont include base

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
nim65s and pre-commit-ci[bot] authored Feb 29, 2024
1 parent d5220b9 commit bf135ef
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,20 @@ cmake_minimum_required(VERSION 3.10)
set(PROJECT_NAME "jrl-cmakemodules")
set(PROJECT_DESCRIPTION "CMake utility toolbox")
set(PROJECT_URL "http://github.com/jrl-umi3218/${PROJECT_NAME}")
set(PROJECT_USE_CMAKE_EXPORT ON)

option(INSTALL_DOCUMENTATION "Generate and install the documentation" OFF)
project(
${PROJECT_NAME}
DESCRIPTION ${PROJECT_DESCRIPTION}
LANGUAGES CXX
VERSION 0.0.0)

set(JRL_CMAKE_MODULES "${CMAKE_CURRENT_LIST_DIR}")
include(base.cmake)
compute_project_args(PROJECT_ARGS)
project(${PROJECT_NAME} ${PROJECT_ARGS})
# Generate CMake exports
include(GNUInstallDirs)
include(package-config.cmake)
set(PROJECT_JRL_CMAKE_MODULE_DIR ${CMAKE_CURRENT_LIST_DIR})
setup_project_package_finalize()

# Add a dummy library with a useful INTERFACE_INCLUDE_DIRECTORIES
add_library(${PROJECT_NAME} INTERFACE)
set(INSTALL_DIR "${CMAKE_INSTALL_DATAROOTDIR}/${PROJECT_NAME}")
target_include_directories(${PROJECT_NAME}
Expand Down

0 comments on commit bf135ef

Please sign in to comment.