Changeset View
Changeset View
Standalone View
Standalone View
CMakeLists.txt
Show All 13 Lines | |||||
# If ccache is available, then use it. | # If ccache is available, then use it. | ||||
find_program(CCACHE ccache) | find_program(CCACHE ccache) | ||||
if(CCACHE) | if(CCACHE) | ||||
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ${CCACHE}) | set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ${CCACHE}) | ||||
set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK ${CCACHE}) | set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK ${CCACHE}) | ||||
endif(CCACHE) | endif(CCACHE) | ||||
# Default to RelWithDebInfo configuration | |||||
if(NOT CMAKE_BUILD_TYPE) | |||||
set(CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING | |||||
"Select the configuration for the build" FORCE) | |||||
endif() | |||||
# Add the magic taret check and check-all | # Add the magic taret check and check-all | ||||
add_custom_target(check-all) | add_custom_target(check-all) | ||||
add_custom_target(check) | add_custom_target(check) | ||||
add_subdirectory(src) | add_subdirectory(src) | ||||
add_subdirectory(test) | add_subdirectory(test) |