GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — logReader/CMakeLists.txt at master · KyQiao/logReader Expand file tree/ Copy pathCMakeLists.txtMore file actions 60 lines (44 loc) · 1.59 KB / Copy pathCMakeLists.txtFile metadata and controls60 lines (44 loc) · 1.59 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 cmake_minimum_required(VERSION 3.10) # name of the folder project(logReader) include(GNUInstallDirs) if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CXX_FLAGS) #release comes with -O3 by default set(CMAKE_BUILD_TYPE Release CACHE STRING "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel." FORCE) endif(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CXX_FLAGS) set(CMAKE_CXX_STANDARD 11) option(TEST "test example" OFF) option(DEBUG "dev debug" OFF) file(GLOB PythonSOURCES src/logReader.cpp src/python.cpp ) set(SOURCES "src/logReader.cpp") set(HOME_INC_DIR "./src") include_directories(/src) if(NOT DEFINED VERSION_INFO) set(VERSION_INFO "\"0.1.2\"") endif(NOT DEFINED VERSION_INFO) add_subdirectory(pybind11) pybind11_add_module(_logReader ${PythonSOURCES}) target_compile_definitions(_logReader PRIVATE VERSION_INFO=${VERSION_INFO}) add_library(logReader ${SOURCES}) if(DEBUG) target_compile_definitions(logReader PRIVATE debug) endif(DEBUG) IF(TEST) enable_testing() file(GLOB TestFile test/*.cpp) # remove some test that not modified list(REMOVE_ITEM TestFile ${NOT_test}) foreach(testSource ${TestFile}) string(REGEX REPLACE "^.*/([^/]*)\\.cpp$" "\\1" PROGNAME "${testSource}") # message(${PROGNAME}) add_executable(${PROGNAME} ${testSource}) include_directories(src/) target_link_libraries(${PROGNAME} PRIVATE logReader) add_test(NAME ${PROGNAME} COMMAND ${PROGNAME}) # add_test(NAME ${PROGNAME} COMMAND qw46 ${CMAKE_CURRENT_SOURCE_DIR}/test/fcc.xyz) endforeach() # file(GLOB EXAMPLES LIST_DIRECTORIES true test/*) endif(TEST) |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |