2017-06-22 22:07:21 +08:00
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2024-02-22 01:39:38 +08:00
|
|
|
index 2f8c3af..d4d4425 100644
|
2017-06-22 22:07:21 +08:00
|
|
|
--- a/CMakeLists.txt
|
|
|
|
+++ b/CMakeLists.txt
|
2024-02-22 01:39:38 +08:00
|
|
|
@@ -27,7 +27,9 @@ set(THREADS_PREFER_PTHREAD_FLAG ON)
|
|
|
|
include(GNUInstallDirs)
|
2017-06-22 22:07:21 +08:00
|
|
|
|
2024-02-22 01:39:38 +08:00
|
|
|
include(CTest)
|
|
|
|
+if(0)
|
2019-08-25 04:43:57 +08:00
|
|
|
enable_testing()
|
|
|
|
+endif()
|
|
|
|
|
2024-02-22 01:39:38 +08:00
|
|
|
# Setup platform-specific threading flags.
|
|
|
|
find_package(Threads REQUIRED)
|
|
|
|
@@ -112,7 +114,9 @@ endif ()
|
2019-08-25 04:43:57 +08:00
|
|
|
include_directories(src/ptex)
|
2017-06-22 22:07:21 +08:00
|
|
|
|
|
|
|
add_subdirectory(src/ptex)
|
2024-02-22 01:39:38 +08:00
|
|
|
+if(0)
|
2019-08-25 04:43:57 +08:00
|
|
|
add_subdirectory(src/utils)
|
|
|
|
add_subdirectory(src/tests)
|
|
|
|
add_subdirectory(src/doc)
|
|
|
|
+endif()
|
|
|
|
add_subdirectory(src/build)
|
2017-06-22 22:07:21 +08:00
|
|
|
diff --git a/src/ptex/CMakeLists.txt b/src/ptex/CMakeLists.txt
|
2024-02-22 01:39:38 +08:00
|
|
|
index 4dfe372..4572dd5 100644
|
2017-06-22 22:07:21 +08:00
|
|
|
--- a/src/ptex/CMakeLists.txt
|
|
|
|
+++ b/src/ptex/CMakeLists.txt
|
2024-02-22 01:39:38 +08:00
|
|
|
@@ -40,7 +40,10 @@ if(PTEX_BUILD_SHARED_LIBS)
|
|
|
|
target_compile_definitions(Ptex_dynamic PRIVATE PTEX_EXPORTS)
|
|
|
|
target_link_libraries(Ptex_dynamic
|
|
|
|
PUBLIC Threads::Threads ZLIB::ZLIB)
|
2019-08-25 04:43:57 +08:00
|
|
|
- install(TARGETS Ptex_dynamic EXPORT Ptex DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
2024-02-22 01:39:38 +08:00
|
|
|
+ install(TARGETS Ptex_dynamic EXPORT Ptex
|
|
|
|
+ RUNTIME DESTINATION ${BIN_INSTALL_DIR}
|
|
|
|
+ LIBRARY DESTINATION ${LIB_INSTALL_DIR}
|
|
|
|
+ ARCHIVE DESTINATION ${LIB_INSTALL_DIR})
|
2019-08-25 04:43:57 +08:00
|
|
|
endif()
|
2017-06-22 22:07:21 +08:00
|
|
|
|
|
|
|
install(FILES
|