-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
47 lines (37 loc) · 1.1 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
41
42
43
44
45
46
cmake_minimum_required(VERSION 3.10)
project(UploadApp)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
# Find the libcurl package
find_package(CURL REQUIRED)
# Add your upload_app executable
add_executable(upload_app
main.cpp
gofile/gofile_uploader.cpp
pixeldrain/pixeldrain_uploader.cpp
api/api_management.cpp
sys/progress_callback.cpp
)
# Link the libcurl library to your upload_app executable
target_link_libraries(upload_app ${CURL_LIBRARIES})
# Add include directories to the upload_app target
target_include_directories(upload_app PRIVATE
${CMAKE_SOURCE_DIR}/gofile
${CMAKE_SOURCE_DIR}/pixeldrain
${CMAKE_SOURCE_DIR}/api
${CMAKE_SOURCE_DIR}/sys
)
# Add setup executable
add_executable(setup
Setup/setup.cpp
)
# Add include directories to the setup target
target_include_directories(setup PRIVATE
${CMAKE_SOURCE_DIR}/Setup
)
# Define the target directory for the files
set(FILES_DIR ${CMAKE_BINARY_DIR}/Files)
set(OUT_DIR ${CMAKE_BINARY_DIR}/out)
# Ensure the target directories exist
file(MAKE_DIRECTORY ${FILES_DIR})
file(MAKE_DIRECTORY ${OUT_DIR})