Skip to content

Commit b66a991

Browse files
committed
add cmake list
1 parent bebbd77 commit b66a991

2 files changed

Lines changed: 28 additions & 1 deletion

File tree

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ cmake_install.cmake
88
example/.idea/
99
example/CMakeCache.txt
1010
example/CMakeFiles/
11-
example/CMakeLists.txt
1211
example/Makefile
1312
example/Testing/
1413
example/cmake_install.cmake

example/CMakeLists.txt

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
cmake_minimum_required(VERSION 3.6)
2+
3+
set( CMAKE_CXX_FLAGS "-std=gnu++11 ")
4+
5+
add_definitions(-DEZY_DEBUG)
6+
7+
set(APP_NAME example)
8+
9+
project(${APP_NAME})
10+
11+
add_subdirectory(../ ../)
12+
13+
# add cross-platforms source files and header files
14+
list(APPEND APP_SOURCE
15+
main.cpp
16+
)
17+
list(APPEND APP_HEADER
18+
)
19+
20+
# mark app complie info and libs info
21+
set(all_code_files
22+
${APP_HEADER}
23+
${APP_SOURCE}
24+
)
25+
26+
add_executable(${APP_NAME} main.cpp)
27+
28+
target_link_libraries(${APP_NAME} ezyfox-client)

0 commit comments

Comments
 (0)