File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,6 +12,10 @@ target_link_libraries(Direct_TCP_IP PRIVATE
1212 >
1313)
1414
15+ if (ANDROID )
16+ find_package (HogMaker REQUIRED )
17+ endif ()
18+
1519add_custom_target (Direct_TCP_IP_Hog
1620 COMMAND $<TARGET_FILE :HogMaker >
1721 "$<TARGET_FILE_DIR :Descent3 >/online/Direct TCP~IP.d3c"
Original file line number Diff line number Diff line change @@ -18,6 +18,10 @@ target_link_libraries(Parallax_Online PRIVATE
1818 >
1919)
2020
21+ if (ANDROID )
22+ find_package (HogMaker REQUIRED )
23+ endif ()
24+
2125add_custom_target (Parallax_Online_Hog
2226 COMMAND $<TARGET_FILE :HogMaker >
2327 "$<TARGET_FILE_DIR :Descent3 >/online/Parallax Online.d3c"
Original file line number Diff line number Diff line change @@ -86,6 +86,10 @@ elseif(CMAKE_SYSTEM_NAME STREQUAL "Windows")
8686 set (HOG_NAME "win" )
8787endif ()
8888
89+ if (ANDROID )
90+ find_package (HogMaker REQUIRED )
91+ endif ()
92+
8993add_custom_target (HogFull
9094 COMMAND $<TARGET_FILE :HogMaker >
9195 "$<TARGET_FILE_DIR :Descent3 >/d3-${HOG_NAME} .hog"
Original file line number Diff line number Diff line change 1- add_executable (
2- HogMaker
3- HogMaker/HogFormat.cpp
4- HogMaker/HogMaker.cpp
5- )
6- add_dependencies (HogMaker get_git_hash )
7- target_include_directories (HogMaker PRIVATE ${PROJECT_BINARY_DIR} /lib )
1+ if (ANDROID )
2+ find_package (HogMaker REQUIRED )
3+ else ()
4+ add_executable (
5+ HogMaker
6+ HogMaker/HogFormat.cpp
7+ HogMaker/HogMaker.cpp
8+ )
9+ export (TARGETS HogMaker FILE "${CMAKE_BINARY_DIR} /HogMakerConfig.cmake" )
10+ add_dependencies (HogMaker get_git_hash )
11+ target_include_directories (HogMaker PRIVATE ${PROJECT_BINARY_DIR} /lib )
12+ endif ()
You can’t perform that action at this time.
0 commit comments