From f7d54cca8fc7dcd8edbddd3c49e70007426279c3 Mon Sep 17 00:00:00 2001 From: Johannes Lorenz Date: Fri, 12 Jan 2024 22:20:35 +0100 Subject: [PATCH] Test --- cmake/CMakeLists.txt | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index e340120..8f21bde 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -1,5 +1,13 @@ cmake_minimum_required(VERSION 3.5) +set(PROJECT liblo) +set(PACKAGE_NAME "${PROJECT}") +if (WITH_CPP_TESTS) + project(${PROJECT} LANGUAGES C CXX) +else() + project(${PROJECT} LANGUAGES C) +endif() + option(WITH_TOOLS "Enable building tools." ON) option(WITH_TESTS "Enable building tests." ON) option(WITH_EXAMPLES "Enable building examples." ON) @@ -22,15 +30,6 @@ if(NOT CMAKE_BUILD_TYPE) "Choose the type of build, options are: Debug Release RelWithDebInfo MinSizeRel") endif() -set(PROJECT liblo) -set(PACKAGE_NAME "${PROJECT}") -if (WITH_CPP_TESTS) - project(${PROJECT} LANGUAGES C CXX) -else() - project(${PROJECT} LANGUAGES C) -endif() - - include(CheckIncludeFiles) include(CheckSymbolExists) include(CheckLibraryExists)