mirror of
https://github.com/kevinbentley/Descent3.git
synced 2025-01-22 11:28:56 +00:00
find_package for HogMaker in parent scope to get target exported properly
This commit is contained in:
parent
73d2c5803c
commit
95fc3d2ce4
@ -275,7 +275,12 @@ endif()
|
|||||||
|
|
||||||
add_subdirectory(Descent3)
|
add_subdirectory(Descent3)
|
||||||
|
|
||||||
add_subdirectory(tools)
|
if (CMAKE_CROSSCOMPILING)
|
||||||
|
find_package(HogMaker REQUIRED)
|
||||||
|
else()
|
||||||
|
add_subdirectory(tools)
|
||||||
|
endif()
|
||||||
|
|
||||||
add_subdirectory(netcon)
|
add_subdirectory(netcon)
|
||||||
add_subdirectory(netgames)
|
add_subdirectory(netgames)
|
||||||
add_subdirectory(scripts)
|
add_subdirectory(scripts)
|
||||||
|
@ -1,11 +1,7 @@
|
|||||||
if(CMAKE_CROSSCOMPILING)
|
add_executable(
|
||||||
find_package(HogMaker)
|
|
||||||
else()
|
|
||||||
add_executable(
|
|
||||||
HogMaker
|
HogMaker
|
||||||
HogMaker/HogFormat.cpp
|
HogMaker/HogFormat.cpp
|
||||||
HogMaker/HogMaker.cpp
|
HogMaker/HogMaker.cpp
|
||||||
)
|
)
|
||||||
target_include_directories(HogMaker PRIVATE ${PROJECT_BINARY_DIR}/lib)
|
target_include_directories(HogMaker PRIVATE ${PROJECT_BINARY_DIR}/lib)
|
||||||
export(TARGETS HogMaker FILE "${CMAKE_BINARY_DIR}/HogMakerConfig.cmake")
|
export(TARGETS HogMaker FILE "${CMAKE_BINARY_DIR}/HogMakerConfig.cmake")
|
||||||
endif()
|
|
Loading…
Reference in New Issue
Block a user