Modify CMakeLists file to automatically launch the tests
This commit is contained in:
parent
d46ffbfcc4
commit
4030126f9f
|
@ -15,6 +15,8 @@ SET(LIBRARY_OUTPUT_PATH "lib")
|
|||
# Where to build the executables
|
||||
SET(OUR_EXECUTABLE_OUTPUT_PATH "${PROJECT_BINARY_DIR}/bin")
|
||||
|
||||
ENABLE_TESTING()
|
||||
|
||||
# Options
|
||||
OPTION(COMPILE_EXAMPLES "Select this if you want to build the examples" OFF)
|
||||
OPTION(COMPILE_TESTS "Select this if you want to build the tests" OFF)
|
||||
|
|
|
@ -18,3 +18,5 @@ file (
|
|||
ADD_EXECUTABLE(tests ${TESTS_SOURCE_FILES})
|
||||
|
||||
TARGET_LINK_LIBRARIES(tests reactphysics3d)
|
||||
|
||||
ADD_TEST(Test tests)
|
||||
|
|
Loading…
Reference in New Issue
Block a user