forked from grogers0/CppQuickCheck
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update CMake and cpp files to fix the compilation on newer MSVC compi…
…lers * Add proper flags on when building on Windows. * Remove all dependnecies on Boost for the core CPP QuickCheck project. Also add an option to use Boost. * Modernize some of the CMake infrastructure to use targets and target properties. * Add type trait machinery to determine the correct type to use for std::uniform_int_distribution based on the standard. * Fix non-standard call to std::time.
- Loading branch information
1 parent
a264b83
commit 2c50b36
Showing
9 changed files
with
78 additions
and
35 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
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,33 +1,36 @@ | ||
add_executable(sampleOutput src/sampleOutput.cpp) | ||
target_link_libraries(sampleOutput cppqc) | ||
|
||
add_executable(sampleShrinkOutput src/sampleShrinkOutput.cpp) | ||
target_link_libraries(sampleShrinkOutput cppqc) | ||
|
||
if(CPPQC_USE_BOOST) | ||
add_executable(sampleOutput src/sampleOutput.cpp) | ||
target_link_libraries(sampleOutput PRIVATE cppqc) | ||
target_include_directories(sampleOutput PUBLIC ${Boost_INCLUDE_DIR}) | ||
|
||
add_executable(sampleShrinkOutput src/sampleShrinkOutput.cpp) | ||
target_link_libraries(sampleShrinkOutput PRIVATE cppqc) | ||
target_include_directories(sampleShrinkOutput PUBLIC ${Boost_INCLUDE_DIR}) | ||
endif() | ||
add_executable(testReverse src/TestReverse.cpp) | ||
target_link_libraries(testReverse cppqc) | ||
target_link_libraries(testReverse PRIVATE cppqc) | ||
|
||
add_executable(testReverseArray src/TestReverseArray.cpp) | ||
target_link_libraries(testReverseArray cppqc) | ||
target_link_libraries(testReverseArray PRIVATE cppqc) | ||
|
||
add_executable(testSort src/TestSort.cpp) | ||
target_link_libraries(testSort cppqc) | ||
target_link_libraries(testSort PRIVATE cppqc) | ||
|
||
add_executable(testSortCompact src/TestSortCompact.cpp) | ||
target_link_libraries(testSortCompact cppqc) | ||
target_link_libraries(testSortCompact PRIVATE cppqc) | ||
|
||
add_executable(testChooseGenerator src/TestChooseGenerator.cpp) | ||
target_link_libraries(testChooseGenerator cppqc) | ||
target_link_libraries(testChooseGenerator PRIVATE cppqc) | ||
|
||
add_executable(exampleElementsGen src/exampleElementsGen.cpp) | ||
target_link_libraries(exampleElementsGen cppqc) | ||
target_link_libraries(exampleElementsGen PRIVATE cppqc) | ||
|
||
add_executable(testSlowShrinking src/TestSlowShrinking.cpp) | ||
target_link_libraries(testSlowShrinking cppqc) | ||
target_link_libraries(testSlowShrinking PRIVATE cppqc) | ||
|
||
add_executable(testWithCustomGenerator src/TestWithCustomGenerator.cpp) | ||
target_link_libraries(testSlowShrinking cppqc) | ||
target_link_libraries(testWithCustomGenerator PRIVATE cppqc) | ||
|
||
# requires c++1y compile flag | ||
#add_executable(testBoostTupleSupport src/BoostTupleSupport.cpp) | ||
#target_link_libraries(testBoostTupleSupport cppqc) | ||
#target_link_libraries(testBoostTupleSupport PRIVATE cppqc) |
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
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
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
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