feather/cmake/FindPolyseed.cmake

10 lines
513 B
CMake
Raw Normal View History

2022-05-24 07:18:23 +00:00
find_path(POLYSEED_INCLUDE_DIR polyseed.h)
2022-07-07 16:25:48 +00:00
find_library(POLYSEED_LIBRARY NAMES libpolyseed.a polyseed)
2022-07-07 15:35:08 +00:00
if (NOT POLYSEED_INCLUDE_DIR OR NOT POLYSEED_LIBRARY)
MESSAGE(STATUS "Could not find installed Polyseed, using submodule instead")
set(Polyseed_SUBMODULE "ON")
set(POLYSEED_INCLUDE_DIR ${CMAKE_SOURCE_DIR}/src/third-party/polyseed/include)
2022-07-07 16:25:48 +00:00
set(POLYSEED_LIBRARY polyseed_static)
2022-07-07 15:35:08 +00:00
endif()
message(STATUS "POLYSEED PATH ${POLYSEED_INCLUDE_DIR}")
2022-05-24 07:18:23 +00:00
message(STATUS "POLYSEED LIBARY ${POLYSEED_LIBRARY}")