Skip to content

Commit

Permalink
Merge pull request #1 from fschloesser/compatibility-cmake-3.10
Browse files Browse the repository at this point in the history
update CMakeLists.txt for cmake 3.10
  • Loading branch information
AntoinePrv authored Nov 19, 2020
2 parents 2dc3cf0 + 4beb0c6 commit debd9c4
Showing 1 changed file with 36 additions and 17 deletions.
53 changes: 36 additions & 17 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
cmake_minimum_required(VERSION 3.14)
cmake_minimum_required(VERSION 3.10)

project(
Bliss
VERSION 0.73.0
LANGUAGES CXX C
DESCRIPTION "A Tool for Computing Automorphism Groups and Canonical Labelings of Graphs"
HOMEPAGE_URL "http://www.tcs.hut.fi/Software/bliss/"
)
if(${CMAKE_VERSION} VERSION_LESS "3.12")
project(
Bliss
VERSION 0.73.1
LANGUAGES CXX C
DESCRIPTION "A Tool for Computing Automorphism Groups and Canonical Labelings of Graphs. http://www.tcs.hut.fi/Software/bliss/."
)
else()
project(
Bliss
VERSION 0.73.1
LANGUAGES CXX C
DESCRIPTION "A Tool for Computing Automorphism Groups and Canonical Labelings of Graphs"
HOMEPAGE_URL "http://www.tcs.hut.fi/Software/bliss/"
)
endif()

# Set the default build type to the given value if no build type was specified
if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
Expand Down Expand Up @@ -63,17 +72,27 @@ target_link_libraries(bliss PRIVATE libbliss)
install(
TARGETS libbliss bliss
EXPORT Bliss
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
)

install(
DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/include/bliss"
TYPE INCLUDE
COMPONENT lib
)
if(${CMAKE_VERSION} VERSION_LESS "3.14")
install(
DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/include/bliss"
DESTINATION include
COMPONENT lib
)
else()
install(
DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/include/bliss"
TYPE INCLUDE
COMPONENT lib
)
endif()

install(
EXPORT Bliss
FILE BlissConfig.cmake
NAMESPACE Bliss::
install(EXPORT Bliss
DESTINATION lib/cmake/Bliss
NAMESPACE Bliss::
FILE BlissConfig.cmake
)

0 comments on commit debd9c4

Please sign in to comment.