mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
gen-zam: Remove submodule, adapt CMake configuration for Zeek build
This commit is contained in:
parent
526238299d
commit
a2f4f2adc3
6 changed files with 6 additions and 41 deletions
|
@ -1,33 +1,2 @@
|
|||
cmake_minimum_required(VERSION 3.15 FATAL_ERROR)
|
||||
project(Gen-ZAM C CXX)
|
||||
|
||||
include(cmake/CommonCMakeConfig.cmake)
|
||||
|
||||
include(RequireCXXStd)
|
||||
|
||||
set(GEN_ZAM_SRCS src/Gen-ZAM.cc)
|
||||
set(GEN_ZAM_HEADERS src/Gen-ZAM.h)
|
||||
add_executable(gen-zam ${GEN_ZAM_SRCS} ${GEN_ZAM_HEADERS})
|
||||
install(TARGETS gen-zam DESTINATION bin)
|
||||
|
||||
if (CMAKE_BUILD_TYPE)
|
||||
string(TOUPPER ${CMAKE_BUILD_TYPE} BuildType)
|
||||
endif ()
|
||||
|
||||
message(
|
||||
"\n===================| Gen-ZAM Build Summary |==================\n"
|
||||
"\n"
|
||||
"\nBuild type: ${CMAKE_BUILD_TYPE}"
|
||||
"\nBuild dir: ${PROJECT_BINARY_DIR}"
|
||||
"\nInstall prefix: ${CMAKE_INSTALL_PREFIX}"
|
||||
"\nDebug mode: ${ENABLE_DEBUG}"
|
||||
"\n"
|
||||
"\nCC: ${CMAKE_C_COMPILER}"
|
||||
"\nCFLAGS: ${CMAKE_C_FLAGS} ${CMAKE_C_FLAGS_${BuildType}}"
|
||||
"\nCXX: ${CMAKE_CXX_COMPILER}"
|
||||
"\nCXXFLAGS: ${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_${BuildType}}"
|
||||
"\nCPP: ${CMAKE_CXX_COMPILER}"
|
||||
"\n"
|
||||
"\n================================================================\n")
|
||||
|
||||
include(UserChangedWarning)
|
||||
add_executable(gen-zam)
|
||||
target_sources(gen-zam PRIVATE src/Gen-ZAM.cc)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue