diff --git a/share/openbr/cmake/FindStasm3.cmake b/share/openbr/cmake/FindStasm3.cmake new file mode 100644 index 0000000..4fb4b9d --- /dev/null +++ b/share/openbr/cmake/FindStasm3.cmake @@ -0,0 +1,20 @@ +# ================================================================ +# The Stasm CMake configuration file +# +# Usage from an external project: +# In your CMakeLists.txt, add these lines: +# +# find_package(Stasm3 REQUIRED) +# target_link_libraries(MY_TARGET ${Stasm_LIBS}) +# ================================================================ + +find_path(Stasm_DIR include/stasm.hpp ${CMAKE_SOURCE_DIR}/3rdparty/*) + +add_subdirectory(${Stasm_DIR} ${Stasm_DIR}/build) + +set(SRC ${SOURCE};${SRC}) + +include_directories(${Stasm_DIR}/include) +link_directories(${Stasm_DIR}/build) + +set(Stasm_LIBS stasm) diff --git a/share/openbr/cmake/FindStasm4.cmake b/share/openbr/cmake/FindStasm4.cmake new file mode 100644 index 0000000..2a3b39c --- /dev/null +++ b/share/openbr/cmake/FindStasm4.cmake @@ -0,0 +1,20 @@ +# ================================================================ +# The Stasm CMake configuration file +# +# Usage from an external project: +# In your CMakeLists.txt, add these lines: +# +# find_package(Stasm4 REQUIRED) +# target_link_libraries(MY_TARGET ${Stasm_LIBS}) +# ================================================================ + +find_path(Stasm_DIR include/stasm.hpp ${CMAKE_SOURCE_DIR}/3rdparty/*) + +add_subdirectory(${Stasm_DIR} ${Stasm_DIR}/build) + +set(SRC ${SOURCE};${SRC}) + +include_directories(${Stasm_DIR}/include) +link_directories(${Stasm_DIR}/build) + +set(Stasm_LIBS stasm)