# HG changeset patch # User David Demelier # Date 1540815936 -3600 # Node ID ae3741be8c3827aaad7c44f649553d03b523f86a # Parent 61dd98874d82e8df687075ae483e3c7aad0632fd Tests: don't build test libraries if disabled While here, fix a hardcoded string in add_custom_command diff -r 61dd98874d82 -r ae3741be8c38 CMakeLists.txt --- a/CMakeLists.txt Sun Oct 28 10:01:44 2018 +0100 +++ b/CMakeLists.txt Mon Oct 29 13:25:36 2018 +0100 @@ -57,11 +57,11 @@ add_subdirectory(mlk-client) add_subdirectory(mlk-server) -# Unit test libs. -add_subdirectory(libmlk-js-test) -add_subdirectory(libmlk-client-js-test) +if (WITH_TESTS) + # Unit test libs. + add_subdirectory(libmlk-js-test) + add_subdirectory(libmlk-client-js-test) -if (WITH_TESTS) enable_testing() add_subdirectory(tests) endif () diff -r 61dd98874d82 -r ae3741be8c38 tests/tools/map/CMakeLists.txt --- a/tests/tools/map/CMakeLists.txt Sun Oct 28 10:01:44 2018 +0100 +++ b/tests/tools/map/CMakeLists.txt Mon Oct 29 13:25:36 2018 +0100 @@ -39,7 +39,7 @@ mlk-map ${CMAKE_CURRENT_SOURCE_DIR}/${m}.tmx VERBATIM - COMMENT "Creating minimal.json and minimal.map using mlk-map(1)" + COMMENT "Creating ${m}.json and ${m}.map using mlk-map(1)" ) list(APPEND sources ${CMAKE_CURRENT_SOURCE_DIR}/${m}.tmx)