FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
algorithm-examples/cpp-algorithm/src/math/test/CMakeLists.txt at main · codejsha/algorithm-examples · GitHub
codejsha
/
algorithm-examples
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
2
Code
Issues
0
Pull requests
0
Discussions
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
algorithm-examples
/
cpp-algorithm
/
src
/
math
/
test
/
CMakeLists.txt
Copy path
More file actions
More file actions
Latest commit
History
History
History
24 lines (20 loc) · 836 Bytes
Breadcrumbs
algorithm-examples
/
cpp-algorithm
/
src
/
math
/
test
/
CMakeLists.txt
Copy path
File metadata and controls
24 lines (20 loc) · 836 Bytes
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
find_package
(
GTest
REQUIRED
)
if
(
WIN32
)
set
(gtest_force_shared_crt
ON
CACHE
BOOL
""
FORCE
)
endif
(
WIN32
)
include_directories
(
${
CMAKE_SOURCE_DIR
}
/src/include
)
include_directories
(
${
CMAKE_SOURCE_DIR
}
/src/math
)
macro
(
add_target_header_test
target
)
string
(
REPLACE
".cpp"
""
target_name
${target}
)
add_executable
(
${target_name}
${target}
)
target_link_libraries
(
${target_name}
PRIVATE
GTest::gtest_main
${ARGN}
)
if
(
MSVC
)
#
## Edit and Continue for CMake projects
target_compile_options
(
${target_name}
PUBLIC
"/Zi"
)
target_link_options
(
${target_name}
PUBLIC
"/INCREMENTAL"
)
endif
()
gtest_discover_tests
(
${target_name}
DISCOVERY_MODE
PRE_TEST
)
endmacro
()
add_target_header_test
(
combination_test.cpp
)
add_target_header_test
(
miller_rabin_test.cpp
)
add_target_header_test
(
permutation_test.cpp
)
Back
|
FazBrowse Home
|
New Git URL