Rename demo/test options to CPPTRACE_BUILD_TESTING
This commit is contained in:
parent
96a55fc686
commit
b28cb54ced
@ -443,7 +443,7 @@ endif()
|
|||||||
|
|
||||||
# =============================================== Demo/test ===============================================
|
# =============================================== Demo/test ===============================================
|
||||||
|
|
||||||
if(CPPTRACE_BUILD_TEST)
|
if(CPPTRACE_BUILD_TESTING)
|
||||||
add_executable(test test/test.cpp)
|
add_executable(test test/test.cpp)
|
||||||
target_compile_features(test PRIVATE cxx_std_11)
|
target_compile_features(test PRIVATE cxx_std_11)
|
||||||
target_link_libraries(test PRIVATE ${target_name})
|
target_link_libraries(test PRIVATE ${target_name})
|
||||||
@ -462,9 +462,7 @@ if(CPPTRACE_BUILD_TEST)
|
|||||||
COMMAND dsymutil $<TARGET_FILE:test>
|
COMMAND dsymutil $<TARGET_FILE:test>
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
|
||||||
|
|
||||||
if(CPPTRACE_BUILD_DEMO)
|
|
||||||
add_executable(demo test/demo.cpp)
|
add_executable(demo test/demo.cpp)
|
||||||
target_compile_features(demo PRIVATE cxx_std_11)
|
target_compile_features(demo PRIVATE cxx_std_11)
|
||||||
target_link_libraries(demo PRIVATE ${target_name})
|
target_link_libraries(demo PRIVATE ${target_name})
|
||||||
|
|||||||
@ -662,8 +662,7 @@ Other useful configurations:
|
|||||||
- `CPPTRACE_USE_EXTERNAL_LIBDWARF=On/Off`: Get libdwarf from `find_package` rather than `FetchContent`.
|
- `CPPTRACE_USE_EXTERNAL_LIBDWARF=On/Off`: Get libdwarf from `find_package` rather than `FetchContent`.
|
||||||
|
|
||||||
Testing:
|
Testing:
|
||||||
- `CPPTRACE_BUILD_TEST` Build a small test program
|
- `CPPTRACE_BUILD_TESTING` Build small demo and test program
|
||||||
- `CPPTRACE_BUILD_DEMO` Build a small demo program
|
|
||||||
- `CPPTRACE_BUILD_TEST_RDYNAMIC` Use `-rdynamic` when compiling the test program
|
- `CPPTRACE_BUILD_TEST_RDYNAMIC` Use `-rdynamic` when compiling the test program
|
||||||
|
|
||||||
## Testing Methodology
|
## Testing Methodology
|
||||||
|
|||||||
@ -150,12 +150,10 @@ option(CPPTRACE_ADDR2LINE_SEARCH_SYSTEM_PATH "" OFF)
|
|||||||
# ---- Other configurations ----
|
# ---- Other configurations ----
|
||||||
|
|
||||||
if(PROJECT_IS_TOP_LEVEL)
|
if(PROJECT_IS_TOP_LEVEL)
|
||||||
option(CPPTRACE_BUILD_TEST "" OFF)
|
option(CPPTRACE_BUILD_TESTING "" OFF)
|
||||||
option(CPPTRACE_BUILD_DEMO "" OFF)
|
|
||||||
option(CPPTRACE_BUILD_TEST_RDYNAMIC "" OFF)
|
option(CPPTRACE_BUILD_TEST_RDYNAMIC "" OFF)
|
||||||
mark_as_advanced(
|
mark_as_advanced(
|
||||||
CPPTRACE_BUILD_TEST
|
CPPTRACE_BUILD_TESTING
|
||||||
CPPTRACE_BUILD_DEMO
|
|
||||||
CPPTRACE_BUILD_TEST_RDYNAMIC
|
CPPTRACE_BUILD_TEST_RDYNAMIC
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user