mumuki / cspec

Small BDD framework for C/C++
GNU General Public License v3.0
106 stars 18 forks source link

build: publish header in CMake project #31

Closed RaniAgus closed 2 years ago

RaniAgus commented 2 years ago

With this update, CSpec could be included in a CMake project without any installation by adding these lines to CMakeLists.txt:

include(ExternalProject)
ExternalProject_Add(cspecs
    GIT_REPOSITORY https://github.com/mumuki/cspec
    CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${CMAKE_BINARY_DIR}
)

include_directories(${CMAKE_BINARY_DIR}/include)
link_directories(${CMAKE_BINARY_DIR}/lib)
link_libraries(cspecs)

resolves #32