aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2023-01-02 12:43:46 +0100
committerLoic Guegan <manzerbredes@mailbox.org>2023-01-02 12:43:46 +0100
commit7077fef33e648c266635bda2cf55fc6a6ed303db (patch)
treef4b63bc7b458fb2dad77c832cbf17c38b0aa3286 /CMakeLists.txt
parente40f98ccda04da3bb9811b354b770fb8c6b563e5 (diff)
Debug and cleaning
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
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})