File tree Expand file tree Collapse file tree 1 file changed +36
-17
lines changed
Expand file tree Collapse file tree 1 file changed +36
-17
lines changed Original file line number Diff line number Diff line change 1- cmake_minimum_required (VERSION 3.14 )
1+ cmake_minimum_required (VERSION 3.10 )
22
3- project (
4- Bliss
5- VERSION 0.73.0
6- LANGUAGES CXX C
7- DESCRIPTION "A Tool for Computing Automorphism Groups and Canonical Labelings of Graphs"
8- HOMEPAGE_URL "http://www.tcs.hut.fi/Software/bliss/"
9- )
3+ if (${CMAKE_VERSION} VERSION_LESS "3.12" )
4+ project (
5+ Bliss
6+ VERSION 0.73.1
7+ LANGUAGES CXX C
8+ DESCRIPTION "A Tool for Computing Automorphism Groups and Canonical Labelings of Graphs. http://www.tcs.hut.fi/Software/bliss/."
9+ )
10+ else ()
11+ project (
12+ Bliss
13+ VERSION 0.73.1
14+ LANGUAGES CXX C
15+ DESCRIPTION "A Tool for Computing Automorphism Groups and Canonical Labelings of Graphs"
16+ HOMEPAGE_URL "http://www.tcs.hut.fi/Software/bliss/"
17+ )
18+ endif ()
1019
1120# Set the default build type to the given value if no build type was specified
1221if (NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES )
@@ -63,17 +72,27 @@ target_link_libraries(bliss PRIVATE libbliss)
6372install (
6473 TARGETS libbliss bliss
6574 EXPORT Bliss
75+ RUNTIME DESTINATION bin
76+ LIBRARY DESTINATION lib
77+ ARCHIVE DESTINATION lib
6678)
6779
68- install (
69- DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR} /include/bliss"
70- TYPE INCLUDE
71- COMPONENT lib
72- )
80+ if (${CMAKE_VERSION} VERSION_LESS "3.14" )
81+ install (
82+ DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR} /include/bliss"
83+ DESTINATION include
84+ COMPONENT lib
85+ )
86+ else ()
87+ install (
88+ DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR} /include/bliss"
89+ TYPE INCLUDE
90+ COMPONENT lib
91+ )
92+ endif ()
7393
74- install (
75- EXPORT Bliss
76- FILE BlissConfig.cmake
77- NAMESPACE Bliss::
94+ install (EXPORT Bliss
7895 DESTINATION lib/cmake/Bliss
96+ NAMESPACE Bliss::
97+ FILE BlissConfig.cmake
7998)
You can’t perform that action at this time.
0 commit comments