File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2,10 +2,9 @@ cmake_minimum_required(VERSION 3.0)
22
33project (example)
44
5- set (CMAKE_CXX_FLAGS  "${CMAKE_CXX_FLAGS}  -Wall -Wextra -Wshadow -Wnon-virtual-dtor -Wpedantic" )
6- 
75add_library (example src/example.cpp)
86target_include_directories (example PUBLIC  include )
7+ target_compile_options (example PRIVATE  -Wall -Wextra -Wshadow -Wnon-virtual-dtor -Wpedantic)
98
109if (CMAKE_CURRENT_SOURCE_DIR  STREQUAL  CMAKE_SOURCE_DIR )
1110  include (cmake/CPM.cmake)
@@ -22,6 +21,7 @@ if(CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR)
2221
2322    add_executable (example_test test /example_test.cpp)
2423    target_link_libraries (example_test PRIVATE  example Catch2::Catch2WithMain)
24+     target_compile_options (example_test PRIVATE  -Wall -Wextra -Wshadow -Wnon-virtual-dtor -Wpedantic)
2525    catch_discover_tests(example_test)
2626  endif ()
2727endif ()
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments