Skip to content

Commit

Permalink
switch build system to cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
Cvolton committed Oct 4, 2024
1 parent aba3d89 commit a2972da
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 82 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
bin/
obj/
build/
.cache/
cppshot.cbp
cppshot.depend
cppshot.layout
16 changes: 16 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
cmake_minimum_required(VERSION 3.21)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_VISIBILITY_PRESET hidden)

project(CppShot VERSION 0.5.0)

file(GLOB_RECURSE SOURCES
src/*.cpp
res/*.rc
)

add_executable(${PROJECT_NAME} ${SOURCES})
target_link_libraries(${PROJECT_NAME} ${CMAKE_SOURCE_DIR}/lib/libunicows.a gdiplus gdi32 user32 kernel32 comctl32)
target_include_directories(${PROJECT_NAME} PRIVATE src)
add_definitions(-DUNICODE=1)
81 changes: 0 additions & 81 deletions Makefile

This file was deleted.

File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/resources.rc → res/resources.rc
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ BEGIN
VALUE "FileDescription", "CppShot"
VALUE "FileVersion", "0.5.0.0"
VALUE "InternalName", "cppshot"
VALUE "LegalCopyright", "�2021 Cvolton"
VALUE "LegalCopyright", "�2021 Cvolton"
VALUE "OriginalFilename", "cppshot.exe"
VALUE "ProductName", "CppShot"
VALUE "ProductVersion", "0.5.0.0"
Expand Down

0 comments on commit a2972da

Please sign in to comment.