This commit is contained in:
parent
ae15a1b7c4
commit
225ca12e83
@ -23,9 +23,10 @@ set(PROJECT_VERSION "${CURRENT_YEAR}.${CURRENT_MONTH}${CURRENT_DAY}.${CURRENT_HO
|
|||||||
string(TIMESTAMP RELEASE_DATE "%Y-%m-%d")
|
string(TIMESTAMP RELEASE_DATE "%Y-%m-%d")
|
||||||
|
|
||||||
# Configure version.hpp file
|
# Configure version.hpp file
|
||||||
file(GENERATE
|
configure_file(
|
||||||
OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/src/version.hpp"
|
"${CMAKE_CURRENT_SOURCE_DIR}/src/version.hpp.in"
|
||||||
INPUT "${CMAKE_CURRENT_SOURCE_DIR}/src/version.hpp.in"
|
"${CMAKE_CURRENT_BINARY_DIR}/src/version.hpp"
|
||||||
|
@ONLY
|
||||||
)
|
)
|
||||||
|
|
||||||
# Set CMAKE_MODULE_PATH to include our custom find modules
|
# Set CMAKE_MODULE_PATH to include our custom find modules
|
||||||
@ -39,12 +40,13 @@ file(GLOB_RECURSE HEADERS "src/*.hpp")
|
|||||||
add_executable(dropshell ${SOURCES})
|
add_executable(dropshell ${SOURCES})
|
||||||
|
|
||||||
# Set include directories
|
# Set include directories
|
||||||
|
# build dir goes first so that we can use the generated version.hpp
|
||||||
target_include_directories(dropshell PRIVATE
|
target_include_directories(dropshell PRIVATE
|
||||||
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/src>
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/src
|
${CMAKE_CURRENT_SOURCE_DIR}/src
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/src/utils
|
${CMAKE_CURRENT_SOURCE_DIR}/src/utils
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/src/contrib
|
${CMAKE_CURRENT_SOURCE_DIR}/src/contrib
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/src/commands
|
${CMAKE_CURRENT_SOURCE_DIR}/src/commands
|
||||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/src>
|
|
||||||
)
|
)
|
||||||
|
|
||||||
include(FetchContent)
|
include(FetchContent)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user