Skip to content

Commit

Permalink
don't build test program, and enable warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoiast committed May 28, 2024
1 parent 2d83344 commit d98fe01
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,12 @@ target_include_directories( qtedit4 PUBLIC

target_link_libraries(qtedit4 qmdilib qsvte qsvsh )

if(MSVC)
target_compile_options(qtedit4 PRIVATE /W4)
else()
target_compile_options(qtedit4 PRIVATE -Wall -Wextra -Wpedantic)
endif()

######################

add_executable(generic-item-complete
Expand All @@ -75,3 +81,4 @@ target_include_directories(generic-item-complete PUBLIC
tests/
.
)
set_target_properties(generic-item-complete PROPERTIES EXCLUDE_FROM_ALL TRUE)

0 comments on commit d98fe01

Please sign in to comment.