From 0e3c68015bb2947b7cacdff28b048a4451213095 Mon Sep 17 00:00:00 2001 From: Rob Loach Date: Tue, 22 Jan 2019 23:22:29 -0500 Subject: [PATCH] Update cmake --- CMakeLists.txt | 7 ++----- cmake/CTextCustom.cmake | 4 ++++ 2 files changed, 6 insertions(+), 5 deletions(-) create mode 100644 cmake/CTextCustom.cmake diff --git a/CMakeLists.txt b/CMakeLists.txt index e217823..156964b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,14 +1,11 @@ cmake_minimum_required(VERSION 3.11) project (raylib-cpp) -option(BUILD_EXAMPLES, "Build examples", TRUE) - set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake") +configure_file(${CMAKE_SOURCE_DIR}/cmake/CTestCustom.cmake ${CMAKE_BINARY_DIR}) include_directories(include) -if (BUILD_EXAMPLES) - add_subdirectory(examples) -endif() +add_subdirectory(examples) include(CTest) enable_testing() diff --git a/cmake/CTextCustom.cmake b/cmake/CTextCustom.cmake new file mode 100644 index 0000000..d550639 --- /dev/null +++ b/cmake/CTextCustom.cmake @@ -0,0 +1,4 @@ +# Ignore the following tests. +set(CTEST_CUSTOM_TESTS_IGNORE + pkg-config--static +) \ No newline at end of file