From bbc0b258f1783e547067f332ea9a54a64162a137 Mon Sep 17 00:00:00 2001 From: Jannik ZANDER Date: Fri, 10 Feb 2017 20:34:16 +0100 Subject: [PATCH] Add cmake folder --- CMakeLists.txt | 2 +- AddUnitTest.cmake => cmake/AddUnitTest.cmake | 2 +- CMakeLists.txt.in => cmake/CMakeLists.txt.in | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename AddUnitTest.cmake => cmake/AddUnitTest.cmake (94%) rename CMakeLists.txt.in => cmake/CMakeLists.txt.in (100%) diff --git a/CMakeLists.txt b/CMakeLists.txt index 383368d..d26d427 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required (VERSION 3.2) project(project_test) -include(AddUnitTest.cmake) +include(cmake/AddUnitTest.cmake) add_subdirectory( solution1 ) add_subdirectory( solution2 ) diff --git a/AddUnitTest.cmake b/cmake/AddUnitTest.cmake similarity index 94% rename from AddUnitTest.cmake rename to cmake/AddUnitTest.cmake index 05f52ff..722109e 100644 --- a/AddUnitTest.cmake +++ b/cmake/AddUnitTest.cmake @@ -93,7 +93,7 @@ if(CMAKE_COMPILER_IS_GNUCXX) endif() # Download and unpack googletest at configure time -configure_file("CMakeLists.txt.in" googletest-download/CMakeLists.txt) +configure_file("${CMAKE_CURRENT_SOURCE_DIR}/cmake/CMakeLists.txt.in" googletest-download/CMakeLists.txt) execute_process(COMMAND ${CMAKE_COMMAND} -G "${CMAKE_GENERATOR}" . RESULT_VARIABLE result WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/googletest-download ) diff --git a/CMakeLists.txt.in b/cmake/CMakeLists.txt.in similarity index 100% rename from CMakeLists.txt.in rename to cmake/CMakeLists.txt.in -- 2.43.0