From: Michal MalĂ˝ Date: Thu, 11 May 2017 09:42:26 +0000 (+0200) Subject: Use more appropriate CMake facilities to define build options X-Git-Url: https://gitweb.devoid-pointer.net/?a=commitdiff_plain;h=93ffe4c8904ebe03f02051f0897cb8e6f065f1b7;p=libHPCS.git Use more appropriate CMake facilities to define build options --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 5b1871c..6cbbf52 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,6 +3,8 @@ include(TestBigEndian) project(libHPCS) +option(BUILD_TEST_TOOL "Build a simple test tool to check the library's operation" OFF) + set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}) add_definitions("-std=c89 -Wall -Wextra -fvisibility=hidden") @@ -41,7 +43,7 @@ install(TARGETS HPCS PUBLIC_HEADER DESTINATION include) -if (${BuildTestTool}) +if (BUILD_TEST_TOOL) set(libHPCS_test_SRCS test_tool.c)