File tree Expand file tree Collapse file tree 2 files changed +1
-19
lines changed Expand file tree Collapse file tree 2 files changed +1
-19
lines changed Original file line number Diff line number Diff line change @@ -216,4 +216,4 @@ add_dependencies(install-lib multiprocess)
216216
217217# Example and test subdirectories 
218218add_subdirectory (example EXCLUDE_FROM_ALL )
219- add_subdirectory (test   EXCLUDE_FROM_ALL )
219+ add_subdirectory (test )
Original file line number Diff line number Diff line change 22# Distributed under the MIT software license, see the accompanying 
33# file COPYING or http://www.opensource.org/licenses/mit-license.php. 
44
5- # Custom test targets for convenience, based on 
6- # https://gitlab.kitware.com/cmake/community/-/wikis/doc/tutorials/EmulateMakeCheck. 
7- # 
8- # CTest already provides a "make test" target, but it just runs existing tests 
9- # that were previously built, without building anything itself. Define "make 
10- # tests" here as a custom target to build all available tests and "make check" 
11- # as a custom target to build and run them. 
12- add_custom_target (mptests)
13- add_custom_target (mpcheck COMMAND  ${CMAKE_CTEST_COMMAND}  DEPENDS  mptests)
14- 
15- # Only add more convenient tests and check targets if project is being built 
16- # standalone, to prevent clashes with external projects. 
17- if  (MP_STANDALONE)
18-   add_custom_target (tests DEPENDS  mptests)
19-   add_custom_target (check DEPENDS  mpcheck)
20- endif ()
21- 
225if (BUILD_TESTING AND  TARGET  CapnProto::kj-test )
236  set_property (SOURCE  ${MP_PROXY_HDRS}  PROPERTY GENERATED  1)
247
@@ -34,6 +17,5 @@ if(BUILD_TESTING AND TARGET CapnProto::kj-test)
3417  target_link_libraries (mptest PRIVATE  CapnProto::kj-test )
3518  target_link_libraries (mptest PRIVATE  Threads::Threads)
3619
37-   add_dependencies (mptests mptest)
3820  add_test (NAME  mptest COMMAND  mptest)
3921endif ()
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments