mirror of
https://github.com/kevinbentley/Descent3.git
synced 2025-12-19 17:37:42 -05:00
find_package for HogMaker in parent scope to get target exported properly
This commit is contained in:
@@ -275,7 +275,12 @@ endif()
|
||||
|
||||
add_subdirectory(Descent3)
|
||||
|
||||
add_subdirectory(tools)
|
||||
if (CMAKE_CROSSCOMPILING)
|
||||
find_package(HogMaker REQUIRED)
|
||||
else()
|
||||
add_subdirectory(tools)
|
||||
endif()
|
||||
|
||||
add_subdirectory(netcon)
|
||||
add_subdirectory(netgames)
|
||||
add_subdirectory(scripts)
|
||||
|
||||
@@ -1,11 +1,7 @@
|
||||
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()
|
||||
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")
|
||||
Reference in New Issue
Block a user