1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- cmake_minimum_required(VERSION 3.5)
- set(this_exe curlFtp)
- file(GLOB LOCAL_SRC
- ${CMAKE_CURRENT_SOURCE_DIR}/*.qrc
- ${CMAKE_CURRENT_SOURCE_DIR}/*.rc
- ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/*.ui
- ${CMAKE_SOURCE_DIR}/External/common/http/*.cpp
- ${CMAKE_SOURCE_DIR}/External/common/LightLog/*.cpp
- ${CMAKE_SOURCE_DIR}/External/common/Logs/*.cpp
- ${CMAKE_SOURCE_DIR}/External/common/ftp/*.cpp
- ${CMAKE_SOURCE_DIR}/External/common/CurlFtp/*.cpp
-
- )
- add_executable(${this_exe}
-
- ${GLOBAL_SRC}
- ${LOCAL_SRC}
- )
- target_include_directories(${this_exe} PRIVATE
- ${CMAKE_CURRENT_SOURCE_DIR}
- ${CMAKE_SOURCE_DIR}/External/common
- ${CMAKE_SOURCE_DIR}/External/common/http
- ${CMAKE_SOURCE_DIR}/External/common/LightLog
- ${CMAKE_SOURCE_DIR}/External/common/Logs
- ${CMAKE_SOURCE_DIR}/External/common/ftp
- ${CMAKE_SOURCE_DIR}/External/common/CurlFtp
- ${CMAKE_SOURCE_DIR}/External/common/StdLog
- ${spdlog_INCLUDE_DIR}
- ${CURL_INCLUDE_DIR}
- )
- target_link_libraries(${this_exe} PRIVATE
- Qt5::Widgets
- Qt5::Core
- Qt5::Network
-
-
-
- )
- target_link_libraries(${this_exe} PRIVATE
-
-
- ${CURL_LIBRARY}
- ${spdlog_LIBRARY}
-
-
- )
- if(CMAKE_CXX_COMPILER_VERSION LESS 9.0)
- target_link_libraries(${this_exe} PRIVATE
- stdc++fs
- )
- endif()
-
|