Skip to content

Commit

Permalink
Generate EscargotInfo.h file in CMAKE_BINARY_DIR/escargot_generated/ …
Browse files Browse the repository at this point in the history
…not on src

Signed-off-by: Seonghyun Kim <[email protected]>
  • Loading branch information
ksh8281 authored and clover2123 committed Oct 19, 2023
1 parent 98133d2 commit cdb47df
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,4 @@ cmake_install.cmake
.vscode
EscargotInfo.h
escargot.pc
escargot_generated/*
8 changes: 5 additions & 3 deletions build/config.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ CMAKE_MINIMUM_REQUIRED (VERSION 2.8.12 FATAL_ERROR)
#######################################################
# CONFIGURATION
#######################################################
SET (ESCARGOT_LIBRARIES)
SET (ESCARGOT_INCDIRS)

# CONFIGURE ESCARGOT VERSION
FIND_PACKAGE(Git)
IF (GIT_FOUND)
Expand All @@ -17,7 +20,8 @@ IF ((NOT DEFINED ESCARGOT_BUILD_VERSION) OR (ESCARGOT_BUILD_VERSION STREQUAL "")
FILE (STRINGS "${PROJECT_SOURCE_DIR}/RELEASE_VERSION" ESCARGOT_BUILD_VERSION)
ENDIF()
MESSAGE(STATUS "Escargot Build Version: ${ESCARGOT_BUILD_VERSION}")
CONFIGURE_FILE (${PROJECT_SOURCE_DIR}/src/EscargotInfo.h.in ${PROJECT_SOURCE_DIR}/src/EscargotInfo.h @ONLY)
CONFIGURE_FILE (${PROJECT_SOURCE_DIR}/src/EscargotInfo.h.in ${CMAKE_BINARY_DIR}/escargot_generated/EscargotInfo.h @ONLY)
SET (ESCARGOT_INCDIRS ${ESCARGOT_INCDIRS} ${CMAKE_BINARY_DIR}/escargot_generated)

#######################################################
# PATH
Expand All @@ -29,8 +33,6 @@ SET (GCUTIL_ROOT ${ESCARGOT_THIRD_PARTY_ROOT}/GCutil)
#######################################################
# FLAGS FOR TARGET
#######################################################
SET (ESCARGOT_LIBRARIES)
SET (ESCARGOT_INCDIRS)
INCLUDE (${ESCARGOT_ROOT}/build/target.cmake)

#######################################################
Expand Down

0 comments on commit cdb47df

Please sign in to comment.