From bfeeac6e4889d1e9a1083b3c7efc59652981b168 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Mon, 1 Aug 2016 08:20:23 +0200 Subject: o Moving the generation logic to Python, embedding a Python interpreter with the help of pybind11. o Adding install configuration to CMake to make it easier to reuse the project later on. o Splitting out the examples into its own project to make it easier to test the whole installation setup and python/template loading. o Trying to reorganize the code a bit, not very much better yet. --- CMakeLists.txt | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 926f7c0..e70bce4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,18 +1,13 @@ cmake_minimum_required(VERSION 3.5) project(kicad_utils) -find_package(Antlr4) -antlr4_add_target(TARGET KicadNet LEXER KicadNetLexer.g4 PARSER KicadNetParser.g4 STATIC) +add_compile_options(--std=c++14) +add_compile_options(-Wall) +add_compile_options(-Wextra) -set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14") +add_subdirectory(core) +add_subdirectory(python) +add_subdirectory(cli) +#add_subdirectory(examples) -set(SOURCE_FILES generate-header.cpp kicad.cpp include/trygvis/kicad.h include-priv/trygvis/antlr.h include-priv/trygvis/string_utils.h) -add_executable(generate-header ${SOURCE_FILES}) -target_include_directories(generate-header PUBLIC include PRIVATE include-priv) -target_link_libraries(generate-header KicadNet Antlr4::antlr4_shared) -target_compile_options(generate-header PUBLIC --std=c++14) -target_compile_options(generate-header PUBLIC -Wall -Wextra) - -include(kicad.cmake) -add_custom_target(all_examples) -add_subdirectory(examples) +message(STATUS "The examples are not built as they depend on a full installation of kicad-utils. Do a make install first and then build the examples") -- cgit v1.2.3