Skip to content

Commit

Permalink
Merge pull request #17 from steinwurf/update-cmake
Browse files Browse the repository at this point in the history
"updated cmake"
  • Loading branch information
jpihl committed Feb 9, 2021
2 parents bcd3f6b + 9dbd99b commit cf30395
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
16 changes: 10 additions & 6 deletions CMakeLists.txt
@@ -1,11 +1,15 @@
cmake_minimum_required (VERSION 3.10)
cmake_minimum_required(VERSION 3.12)
project(hex)

file(GLOB hex_headers ./src/hex/*.hpp)

# Define library
add_library(hex INTERFACE)
add_library(steinwurf::hex ALIAS hex)

target_compile_features(hex INTERFACE cxx_std_14)
target_include_directories(hex INTERFACE src/)
add_library(steinwurf::hex ALIAS hex)

install(FILES ${hex_headers} DESTINATION ${CMAKE_INSTALL_PREFIX}/include/hex)
# Install headers
install(
DIRECTORY ./src/hex
DESTINATION ${CMAKE_INSTALL_PREFIX}/include
FILES_MATCHING
PATTERN *.hpp)
2 changes: 1 addition & 1 deletion NEWS.rst
Expand Up @@ -6,7 +6,7 @@ every change, see the Git log.

Latest
------
* tbd
* Minor: Minor changes to CMakeLists.txt.

4.5.0
-----
Expand Down

0 comments on commit cf30395

Please sign in to comment.