Descent3/tools/CMakeLists.txt
Azamat H. Hackimov cc7fbd46ed Don't rebuild HogMaker on each commit
Remove configure-time dependency get_git_hash that cause to rebuild whole graph of dependencies (like HOG files).
2024-10-21 18:20:32 +03:00

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()