You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
685 B
31 lines
685 B
cmake_minimum_required(VERSION 3.10) |
|
|
|
project(AutoStoreApp LANGUAGES CXX VERSION 0.1.0) |
|
set(TARGET_NAME AutoStore) |
|
|
|
set(CMAKE_CXX_STANDARD 17) |
|
set(CMAKE_CXX_STANDARD_REQUIRED ON) |
|
|
|
|
|
configure_file(src/Version.h.in ${CMAKE_BINARY_DIR}/Version.h) |
|
|
|
set(SOURCES |
|
src/Main.cpp |
|
) |
|
|
|
set (LIBRARIES |
|
) |
|
|
|
add_executable(${TARGET_NAME} ${SOURCES}) |
|
target_include_directories(${TARGET_NAME} |
|
PRIVATE |
|
${CMAKE_BINARY_DIR} |
|
) |
|
|
|
# for docker test |
|
# target_compile_options(${TARGET_NAME} PRIVATE -static-libgcc -static-libstdc++) |
|
# target_link_options(${TARGET_NAME} PRIVATE -static-libgcc -static-libstdc++) |
|
|
|
target_link_libraries(${TARGET_NAME} ${LIBRARIES}) |
|
|
|
# add_subdirectory(tests/unit)
|
|
|