Skip to content

Commit

Permalink
Reduce compiler warnings for -Wall -Wpedantic -Wextra
Browse files Browse the repository at this point in the history
  • Loading branch information
MaJerle committed Jul 27, 2022
1 parent 38ee8c8 commit 7e9e529
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,27 @@ add_executable(${PROJECT_NAME})
target_sources(${PROJECT_NAME} PUBLIC
${CMAKE_CURRENT_LIST_DIR}/dev/main.c
${CMAKE_CURRENT_LIST_DIR}/examples/test_code.c
)
)

# Add key include paths
target_include_directories(${PROJECT_NAME} PUBLIC
${CMAKE_CURRENT_LIST_DIR}/dev
)
)

# Compilation definition information
target_compile_definitions(${PROJECT_NAME} PUBLIC
WIN32
_DEBUG
CONSOLE
LWGPS_DEV
)
)

# Compiler options
target_compile_options(${PROJECT_NAME} PRIVATE
-Wall
-Wextra
-Wpedantic
)

# Add subdir with lwgps and link to project
add_subdirectory("lwgps" lwgps)
Expand Down

0 comments on commit 7e9e529

Please sign in to comment.