Skip to content

Commit

Permalink
Update gitignore to support cmakelists files
Browse files Browse the repository at this point in the history
  • Loading branch information
MaJerle committed Dec 12, 2021
1 parent 6817635 commit 2175b32
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
*.i
*.txt
!docs/*.txt
!CMakeLists.txt
RTE/

*debug
Expand Down
29 changes: 29 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
cmake_minimum_required(VERSION 3.0.0)
project(LwOW VERSION 0.1.0)

include(CTest)
enable_testing()

add_executable(${PROJECT_NAME}
lwow/src/lwow/lwow.c
lwow/src/system/lwow_ll_win32.c
lwow/src/system/lwow_sys_win32.c
lwow/src/devices/lwow_device_ds18x20.c
snippets/scan_devices.c
dev/VisualStudio/main.c)

target_include_directories(${PROJECT_NAME} PRIVATE
dev/VisualStudio
lwow/src/include/
snippets/include
)

target_compile_definitions(${PROJECT_NAME} PRIVATE
WIN32
_DEBUG
CONSOLE
)

set(CPACK_PROJECT_NAME ${PROJECT_NAME})
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
include(CPack)

0 comments on commit 2175b32

Please sign in to comment.