Commit e6a7e66d6296bebd3e9fe18037be5f6638033889

Authored by Scott Klum
1 parent 915a5ec8

Added new stasm cmake files

share/openbr/cmake/FindStasm3.cmake 0 → 100644
  1 +# ================================================================
  2 +# The Stasm CMake configuration file
  3 +#
  4 +# Usage from an external project:
  5 +# In your CMakeLists.txt, add these lines:
  6 +#
  7 +# find_package(Stasm3 REQUIRED)
  8 +# target_link_libraries(MY_TARGET ${Stasm_LIBS})
  9 +# ================================================================
  10 +
  11 +find_path(Stasm_DIR include/stasm.hpp ${CMAKE_SOURCE_DIR}/3rdparty/*)
  12 +
  13 +add_subdirectory(${Stasm_DIR} ${Stasm_DIR}/build)
  14 +
  15 +set(SRC ${SOURCE};${SRC})
  16 +
  17 +include_directories(${Stasm_DIR}/include)
  18 +link_directories(${Stasm_DIR}/build)
  19 +
  20 +set(Stasm_LIBS stasm)
share/openbr/cmake/FindStasm4.cmake 0 → 100644
  1 +# ================================================================
  2 +# The Stasm CMake configuration file
  3 +#
  4 +# Usage from an external project:
  5 +# In your CMakeLists.txt, add these lines:
  6 +#
  7 +# find_package(Stasm4 REQUIRED)
  8 +# target_link_libraries(MY_TARGET ${Stasm_LIBS})
  9 +# ================================================================
  10 +
  11 +find_path(Stasm_DIR include/stasm.hpp ${CMAKE_SOURCE_DIR}/3rdparty/*)
  12 +
  13 +add_subdirectory(${Stasm_DIR} ${Stasm_DIR}/build)
  14 +
  15 +set(SRC ${SOURCE};${SRC})
  16 +
  17 +include_directories(${Stasm_DIR}/include)
  18 +link_directories(${Stasm_DIR}/build)
  19 +
  20 +set(Stasm_LIBS stasm)