From 7077fef33e648c266635bda2cf55fc6a6ed303db Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Mon, 2 Jan 2023 12:43:46 +0100 Subject: Debug and cleaning --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index eee6a42..130849f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.10) -project(ochess VERSION "0.0.0") +project(ochess VERSION 0.0.0) # wxWidgets find_package(wxWidgets COMPONENTS net gl core base adv aui propgrid REQUIRED) @@ -8,6 +8,8 @@ include(${wxWidgets_USE_FILE}) # Ochess include_directories(src) file(GLOB_RECURSE CPP_FILES src/*.cpp) +configure_file(${CMAKE_SOURCE_DIR}/src/config.h.in ${CMAKE_BINARY_DIR}/config.h) +include_directories(${CMAKE_CURRENT_BINARY_DIR}) # Enable access to config.h add_executable(ochess ${CPP_FILES}) target_link_libraries(ochess ${wxWidgets_LIBRARIES}) -- cgit v1.2.3