diff options
author | FormerLurker <hochgebe@gmail.com> | 2020-11-08 21:27:34 +0300 |
---|---|---|
committer | FormerLurker <hochgebe@gmail.com> | 2020-11-08 21:27:34 +0300 |
commit | 5eb4453aed430b3c5f336030c9a6eeb6e8ed18eb (patch) | |
tree | f23df828a2b018b66571d8404b933c5f2f940b12 /CMakeLists.txt | |
parent | 8bc8b43506c2601823cad652a33da84389381c99 (diff) |
Code cleanup. Rename exe files for console and inverse processor app. Implement #15 and #16.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 19cb971..b2a7831 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,6 @@ cmake_minimum_required (VERSION "3.13") +set(CMAKE_VERBOSE_MAKEFILE ON) + # You can tweak some common (for all subprojects) stuff here. For example: project(Build C CXX) @@ -11,6 +13,11 @@ set(CMAKE_DISABLE_SOURCE_CHANGES ON) set(CMAKE_POSITION_INDEPENDENT_CODE ON) option(USE_CXX_EXCEPTIONS "Enable C++ exception support" ON) +# add a definition so our libraries know that the version info is available +add_definitions("-DHAS_GENERATED_VERSION") +# include the generated header. +include_directories("${CMAKE_BINARY_DIR}/GcodeProcessorLib/generated/") + if ("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_BINARY_DIR}") message(SEND_ERROR "In-source builds are not allowed.") endif () @@ -33,8 +40,11 @@ add_subdirectory(${CMAKE_SOURCE_DIR}/TCLAP) add_subdirectory(${CMAKE_SOURCE_DIR}/GcodeProcessorLib) add_subdirectory(${CMAKE_SOURCE_DIR}/ArcWelder) add_subdirectory(${CMAKE_SOURCE_DIR}/ArcWelderConsole) +#include(${CMAKE_CURRENT_SOURCE_DIR}/ArcWelderConsole/CMakeLists.txt) add_subdirectory(${CMAKE_SOURCE_DIR}/ArcWelderInverseProcessor) add_subdirectory(${CMAKE_SOURCE_DIR}/PyArcWelder) + + |