Skip to content

Commit dac2f9a

Browse files
[Cmake] modernized cmake files a little bit
1 parent 8f03333 commit dac2f9a

File tree

3 files changed

+9
-18
lines changed

3 files changed

+9
-18
lines changed

fineftp-server/CMakeLists.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,10 @@ set_target_properties(${PROJECT_NAME} PROPERTIES
121121

122122
##################################
123123

124-
# Mirror the folder structure in an IDE
125-
include(sourcetree.cmake)
126-
create_source_tree(${includes} ${sources})
124+
source_group(TREE "${CMAKE_CURRENT_SOURCE_DIR}" FILES
125+
${includes}
126+
${sources}
127+
)
127128

128129
################################################################################
129130
### Installation rules

fineftp-server/sourcetree.cmake

Lines changed: 0 additions & 12 deletions
This file was deleted.

samples/fineftp_example/CMakeLists.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
cmake_minimum_required(VERSION 3.5.1...4.0)
1+
cmake_minimum_required(VERSION 3.13...4.0)
22

33
project(fineftp_example)
44

5-
set(CMAKE_CXX_STANDARD 14)
6-
75
set(CMAKE_FIND_PACKAGE_PREFER_CONFIG TRUE)
86
find_package(fineftp REQUIRED)
97

@@ -18,3 +16,7 @@ add_executable (${PROJECT_NAME}
1816
target_link_libraries (${PROJECT_NAME}
1917
fineftp::server
2018
)
19+
20+
target_compile_features(${PROJECT_NAME}
21+
PUBLIC cxx_std_14
22+
)

0 commit comments

Comments
 (0)