2018-08-22 08:17:49 +08:00
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2019-08-25 04:43:57 +08:00
|
|
|
index 496712d..3df05c7 100644
|
2018-08-22 08:17:49 +08:00
|
|
|
--- a/CMakeLists.txt
|
|
|
|
+++ b/CMakeLists.txt
|
2019-08-25 04:43:57 +08:00
|
|
|
@@ -82,10 +82,12 @@ if (BUILD_SHARED_LIBS)
|
|
|
|
endif()
|
2018-08-22 08:17:49 +08:00
|
|
|
|
|
|
|
add_subdirectory(src)
|
2019-08-25 04:43:57 +08:00
|
|
|
-add_subdirectory(tests)
|
|
|
|
-add_subdirectory(doc)
|
|
|
|
-if (NOT GRAPHITE2_NFILEFACE)
|
|
|
|
- add_subdirectory(gr2fonttest)
|
2018-08-22 08:17:49 +08:00
|
|
|
+if(NOT DISABLE_TESTS)
|
2019-08-25 04:43:57 +08:00
|
|
|
+ add_subdirectory(tests)
|
|
|
|
+ add_subdirectory(doc)
|
|
|
|
+ if (NOT GRAPHITE2_NFILEFACE)
|
|
|
|
+ add_subdirectory(gr2fonttest)
|
|
|
|
+ endif()
|
|
|
|
endif()
|
2018-08-22 08:17:49 +08:00
|
|
|
|
|
|
|
set(version 3.0.1)
|
2019-08-25 04:43:57 +08:00
|
|
|
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
2020-09-19 08:17:21 +08:00
|
|
|
index b6ac26b..851a97f 100644
|
2019-08-25 04:43:57 +08:00
|
|
|
--- a/src/CMakeLists.txt
|
|
|
|
+++ b/src/CMakeLists.txt
|
2020-09-19 08:17:21 +08:00
|
|
|
@@ -127,9 +127,9 @@ if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
|
2019-08-25 04:43:57 +08:00
|
|
|
endif ()
|
|
|
|
endif()
|
|
|
|
include(Graphite)
|
|
|
|
- if (BUILD_SHARED_LIBS)
|
|
|
|
+ if (NOT DISABLE_TESTS)
|
|
|
|
nolib_test(stdc++ $<TARGET_SONAME_FILE:graphite2>)
|
2020-09-19 08:17:21 +08:00
|
|
|
- endif ()
|
|
|
|
+ endif()
|
2019-08-25 04:43:57 +08:00
|
|
|
set(CMAKE_CXX_IMPLICIT_LINK_LIBRARIES "")
|
2020-09-19 08:17:21 +08:00
|
|
|
CREATE_LIBTOOL_FILE(graphite2 "/lib${LIB_SUFFIX}")
|
|
|
|
endif()
|
|
|
|
@@ -144,7 +144,9 @@ if (${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
|
|
|
|
endif()
|
2019-08-25 04:43:57 +08:00
|
|
|
target_link_libraries(graphite2 c)
|
|
|
|
include(Graphite)
|
|
|
|
- nolib_test(stdc++ $<TARGET_SONAME_FILE:graphite2>)
|
|
|
|
+ if (NOT DISABLE_TESTS)
|
|
|
|
+ nolib_test(stdc++ $<TARGET_SONAME_FILE:graphite2>)
|
2020-09-19 08:17:21 +08:00
|
|
|
+ endif()
|
2019-08-25 04:43:57 +08:00
|
|
|
set(CMAKE_CXX_IMPLICIT_LINK_LIBRARIES "")
|
|
|
|
CREATE_LIBTOOL_FILE(graphite2 "/lib${LIB_SUFFIX}")
|
|
|
|
endif()
|