Debug and cleaning

This commit is contained in:
Loic Guegan 2023-01-02 12:43:46 +01:00
parent e40f98ccda
commit 7077fef33e
6 changed files with 13 additions and 5 deletions

View file

@ -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})