Update cmake & readme

This commit is contained in:
halx99 2021-04-24 23:51:23 +08:00
parent f53cfe4ebf
commit 2a1459b27b
3 changed files with 11 additions and 3 deletions

View File

@ -63,6 +63,7 @@ if(BUILD_EXT_BOX2D)
set_target_properties(box2d PROPERTIES
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin"
FOLDER "External"
)
target_link_libraries(external box2d)
@ -290,6 +291,13 @@ if(BUILD_EXT_CARES)
target_link_libraries(external c-ares)
include_directories($<TARGET_FILE_DIR:c-ares>)
include_directories("c-ares/include")
set_target_properties(c-ares
PROPERTIES
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin"
FOLDER "External"
)
endif(BUILD_EXT_CARES)
# put "external" into External folder, too

2
external/README.md vendored
View File

@ -21,7 +21,7 @@
## c-ares
- Upstream: https://github.com/c-ares/c-ares
- Version: 1.17.1
- Version: 1.17.1-809d5e8 (2055)
- License: MIT
## Chipmunk2D

View File

@ -1,2 +1,2 @@
ADD_SUBDIRECTORY (lib)
ADD_SUBDIRECTORY (tools)
# ADD_SUBDIRECTORY (tools)