From e6a7e66d6296bebd3e9fe18037be5f6638033889 Mon Sep 17 00:00:00 2001 From: Scott Klum Date: Tue, 25 Jun 2013 13:53:28 -0400 Subject: [PATCH] Added new stasm cmake files --- share/openbr/cmake/FindStasm3.cmake | 20 ++++++++++++++++++++ share/openbr/cmake/FindStasm4.cmake | 20 ++++++++++++++++++++ 2 files changed, 40 insertions(+), 0 deletions(-) create mode 100644 share/openbr/cmake/FindStasm3.cmake create mode 100644 share/openbr/cmake/FindStasm4.cmake 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) -- libgit2 0.21.4