forked from apple/swift-argument-parser
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* build: update cmake for TestHelpers rename * build: make CMake build on macOS work Unfortunately, XCTest importing is not working for some reason currently. However, this allows you to build on Darwin as follows: ``` cmake -G Ninja -D CMAKE_BUILD_TYPE=Release -D BUILD_TESTING=NO -S . -B out ninja -C out ``` Windows and Linux builds remain functional. * build: refactor Examples build with CMake Although this goes contrary to best practices for CMake, this helps keep the source tree a bit leaner for the Examples.
- Loading branch information
Showing
9 changed files
with
22 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,15 @@ | ||
add_subdirectory(math) | ||
add_subdirectory(repeat) | ||
add_subdirectory(roll) | ||
add_executable(math | ||
math/main.swift) | ||
target_link_libraries(math PRIVATE | ||
ArgumentParser) | ||
|
||
add_executable(repeat | ||
repeat/main.swift) | ||
target_link_libraries(repeat PRIVATE | ||
ArgumentParser) | ||
|
||
add_executable(roll | ||
roll/main.swift | ||
roll/SplitMix64.swift) | ||
target_link_libraries(roll PRIVATE | ||
ArgumentParser) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
add_subdirectory(ArgumentParser) | ||
if(BUILD_TESTING) | ||
add_subdirectory(TestHelpers) | ||
add_subdirectory(SAPTestHelpers) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
add_library(TestHelpers | ||
add_library(SAPTestHelpers | ||
StringHelpers.swift | ||
TestHelpers.swift) | ||
set_target_properties(TestHelpers PROPERTIES | ||
set_target_properties(SAPTestHelpers PROPERTIES | ||
INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_Swift_MODULE_DIRECTORY}) | ||
target_link_libraries(TestHelpers PUBLIC | ||
target_link_libraries(SAPTestHelpers PUBLIC | ||
ArgumentParser | ||
XCTest) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters