We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e4162e5 commit ab418b8Copy full SHA for ab418b8
1 file changed
CMakeLists.txt
@@ -32,6 +32,18 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS on)
32
33
include(GNUInstallDirs)
34
35
+if(STATIC_ANALYSIS)
36
+ include(cmake/static_analysis.cmake)
37
+endif()
38
+
39
+add_compile_options(
40
+ -Wall
41
+ -Wextra
42
+ -Wpedantic
43
+ -Werror
44
+ -Wfatal-errors
45
+)
46
47
file(GLOB cpp_files "*.cpp")
48
49
set(LIBRARY_OBJECTS "")
@@ -42,5 +54,9 @@ foreach(cpp_file ${cpp_files})
54
endforeach()
55
56
add_library(smithlab_cpp)
-target_include_directories(smithlab_cpp PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
-target_link_libraries(smithlab_cpp PUBLIC ${LIBRARY_OBJECTS})
57
+target_include_directories(smithlab_cpp PUBLIC
58
+ ${CMAKE_CURRENT_SOURCE_DIR}
59
60
+target_link_libraries(smithlab_cpp PUBLIC
61
+ ${LIBRARY_OBJECTS}
62
0 commit comments