-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
42 lines (32 loc) · 1.09 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
cmake_minimum_required(VERSION 3.21)
project(md5_hash_tool)
set(CMAKE_C_STANDARD 11)
set_source_files_properties(src/res/crypto_md5.rc PROPERTIES)
set(CMAKE_VERBOSE_MAKEFILE ON)
include_directories(${C_INCLUDE_PATH}/include)
link_directories(${C_INCLUDE_PATH}/lib)
add_executable(md5_hash_tool WIN32
src/main.c
src/res/crypto_md5.rc
src/io/fileIO.c
src/global/globalVars.c
src/global/globalVars.h
src/enc/hashing.c
src/proc/mainwindowProc.c
src/util/utility.c
src/ui/view.c
src/res/resource1.h
src/handler/error_handler.c
src/handler/error_handler.h
src/consts/text_consts.c
src/consts/text_consts.h
)
target_link_libraries(md5_hash_tool comctl32)
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
target_link_options(md5_hash_tool PRIVATE "LINKER:/MANIFEST:NO")
endif ()
if (NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "RelWithDebInfo" CACHE STRING
"Default build type: RelWithDebInfo" FORCE)
endif ()
message("Generated with config types: ${CMAKE_CONFIGURATION_TYPES}")