Skip to content

Commit

Permalink
Minor CMake change for readability
Browse files Browse the repository at this point in the history
PROJECT_SOURCE_DIR is easier to read than all the `../`'s. I also removed
`INCLUDE_DIR` to (arguably) reduce complexity.
  • Loading branch information
camio committed Oct 19, 2024
1 parent 9aa88cd commit 6674144
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/beman/exemplar/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,12 @@ add_library(beman::exemplar ALIAS beman.exemplar)

target_sources(beman.exemplar PRIVATE identity.cpp)

set(INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../../../include/)

target_sources(
beman.exemplar
PUBLIC
FILE_SET HEADERS
BASE_DIRS ${INCLUDE_DIR}
FILES ${INCLUDE_DIR}/beman/exemplar/identity.hpp
BASE_DIRS ${PROJET_SOURCE_DIR}/include
FILES ${PROJECT_SOURCE_DIR}/include/beman/exemplar/identity.hpp
)

set_target_properties(beman.exemplar PROPERTIES VERIFY_INTERFACE_HEADER_SETS ON)
Expand Down

0 comments on commit 6674144

Please sign in to comment.