Skip to content

Commit

Permalink
chore: updated to CMate with full templates
Browse files Browse the repository at this point in the history
  • Loading branch information
chybz committed Jul 20, 2024
1 parent e77ac75 commit 57ee56a
Show file tree
Hide file tree
Showing 3 changed files with 1,236 additions and 421 deletions.
15 changes: 10 additions & 5 deletions cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,22 @@ endif()

option(CUCUMBER_MESSAGES_BUILD_TESTS "Build the unit tests." ${CUCUMBER_MESSAGES_BUILD_TESTS_INIT})


find_package(nlohmann_json CONFIG REQUIRED)

add_subdirectory(src/lib/messages)

if(CUCUMBER_MESSAGES_BUILD_TESTS)
include(CTest)
enable_testing()
endif()


install(
TARGETS
cucumber_messages_lib
EXPORT cucumber_messages-config
RUNTIME DESTINATION \${CMAKE_INSTALL_BINDIR}
LIBRARY DESTINATION \${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION \${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
)

install(
Expand All @@ -43,3 +43,8 @@ install(
NAMESPACE cucumber::
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/cucumber_messages
)

install(
DIRECTORY "${PROJECT_SOURCE_DIR}/include/messages"
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/cucumber
)
Loading

0 comments on commit 57ee56a

Please sign in to comment.