-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
46 lines (37 loc) · 971 Bytes
/
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
41
42
43
44
45
46
cmake_minimum_required(VERSION 3.15)
project(eclipselock)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
# Find required packages
find_package(wxWidgets REQUIRED COMPONENTS core base)
include(${wxWidgets_USE_FILE})
find_package(OpenSSL REQUIRED)
# Source files
set(SOURCES
src/main.cpp
src/gui/MainWindow.cpp
src/AESCrypt.cpp
)
# Header files
set(HEADERS
src/gui/MainWindow.h
src/AESCrypt.h
)
# Create executable
add_executable(${PROJECT_NAME} ${SOURCES} ${HEADERS})
# Include directories
target_include_directories(${PROJECT_NAME} PRIVATE
${CMAKE_SOURCE_DIR}/src
${OPENSSL_INCLUDE_DIR}
)
# Link libraries
target_link_libraries(${PROJECT_NAME} PRIVATE
${wxWidgets_LIBRARIES}
OpenSSL::SSL
OpenSSL::Crypto
)
# Add compile definitions if needed
target_compile_definitions(${PROJECT_NAME} PRIVATE
$<$<CXX_COMPILER_ID:MSVC>:_CRT_SECURE_NO_WARNINGS>
)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})