Set default for WITH_EXAMPLES to YES, disabled tests.
This commit is contained in:
parent
0b35fa0828
commit
552c92a1ef
|
@ -73,6 +73,7 @@ else()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Compile examples
|
# Compile examples
|
||||||
|
set(WITH_EXAMPLES "YES" CACHE STRING "WITH_EXAMPLES defaults to \"YES\"")
|
||||||
if(WITH_EXAMPLES)
|
if(WITH_EXAMPLES)
|
||||||
file(GLOB sources_examples examples/*.cpp)
|
file(GLOB sources_examples examples/*.cpp)
|
||||||
foreach(src ${sources_examples})
|
foreach(src ${sources_examples})
|
||||||
|
@ -84,14 +85,7 @@ endif()
|
||||||
|
|
||||||
# Compile tests
|
# Compile tests
|
||||||
if(WITH_TESTS)
|
if(WITH_TESTS)
|
||||||
include(CTest)
|
# Disabled for now.
|
||||||
file(GLOB sources_tests tests/test_*.cpp)
|
|
||||||
foreach(src ${sources_tests})
|
|
||||||
get_filename_component(bin ${src} NAME_WE)
|
|
||||||
add_executable(${bin} ${src})
|
|
||||||
target_link_libraries(${bin} mastodon-cpp)
|
|
||||||
add_test(${bin} ${bin})
|
|
||||||
endforeach()
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Install library and header files
|
# Install library and header files
|
||||||
|
|
Reference in New Issue
Block a user