mirror of
https://github.com/kevinbentley/Descent3.git
synced 2025-01-22 19:55:23 +00:00
cc7fbd46ed
Remove configure-time dependency get_git_hash that cause to rebuild whole graph of dependencies (like HOG files).
12 lines
290 B
CMake
12 lines
290 B
CMake
if(CMAKE_CROSSCOMPILING)
|
|
find_package(HogMaker)
|
|
else()
|
|
add_executable(
|
|
HogMaker
|
|
HogMaker/HogFormat.cpp
|
|
HogMaker/HogMaker.cpp
|
|
)
|
|
target_include_directories(HogMaker PRIVATE ${PROJECT_BINARY_DIR}/lib)
|
|
export(TARGETS HogMaker FILE "${CMAKE_BINARY_DIR}/HogMakerConfig.cmake")
|
|
endif()
|