FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
expresscpp/example/CMakeLists.txt at master · expresscpp/expresscpp · GitHub
expresscpp
/
expresscpp
Public
Notifications
You must be signed in to change notification settings
Fork
15
Star
96
Code
Issues
5
Pull requests
2
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
expresscpp
/
example
/
CMakeLists.txt
Copy path
More file actions
More file actions
Latest commit
History
History
History
42 lines (38 loc) · 1.54 KB
Breadcrumbs
expresscpp
/
example
/
CMakeLists.txt
Copy path
File metadata and controls
42 lines (38 loc) · 1.54 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
cmake_minimum_required
(
VERSION
3.8
)
list
(
APPEND
CMAKE_MODULE_PATH
${
CMAKE_CURRENT_LIST_DIR
}
)
include
(
embed_favicon_in_header_file
)
create_resources
(
${
CMAKE_CURRENT_LIST_DIR
}
${
CMAKE_BINARY_DIR
}
/favicon_dump.hpp
)
function
(
add_example
Name
)
add_executable
(
example_${Name}
${
CMAKE_CURRENT_LIST_DIR
}
/${Name}.cpp
)
target_link_libraries
(
example_${Name}
PRIVATE
${
PROJECT_NAME
}
${CMAKE_THREAD_LIBS_INIT}
Threads::Threads
$<$<
PLATFORM_ID
:
Linux
>:-
lm
>
$<$<
PLATFORM_ID
:
Linux
>:-
pthread
>)
target_compile_options
(
example_${Name}
PRIVATE
$<$<
OR
:$<
CXX_COMPILER_ID
:
AppleClang
>,$<
CXX_COMPILER_ID
:
GNU
>,$<
CXX_COMPILER_ID
:
Clang
>>:-
Wall
>
$<$<
OR
:$<
CXX_COMPILER_ID
:
AppleClang
>,$<
CXX_COMPILER_ID
:
GNU
>,$<
CXX_COMPILER_ID
:
Clang
>>:-
pedantic
>
$<$<
OR
:$<
CXX_COMPILER_ID
:
AppleClang
>,$<
CXX_COMPILER_ID
:
GNU
>,$<
CXX_COMPILER_ID
:
Clang
>>:-
Wextra
>)
if
(CLANG_TIDY_EXE)
set_target_properties
(example_
${Name}
PROPERTIES CXX_CLANG_TIDY
"
${DO_CLANG_TIDY}
"
)
endif
()
endfunction
()
add_example
(
middleware_auth_like
)
add_example
(
middleware_logger_like
)
add_example
(
query_params
)
add_example
(
url_params
)
#
add_example(simple_rest_router_server)
add_example
(
error_handler
)
add_example
(
multiple_handlers
)
add_example
(
router
)
add_example
(
serve_favicon
)
add_example
(
serve_static
)
add_example
(
template_handlers
)
add_example
(
readme
)
Back
|
FazBrowse Home
|
New Git URL