2022-12-05 20:45:26 +01:00
|
|
|
cmake_minimum_required(VERSION 3.15)
|
|
|
|
|
2023-07-30 23:01:41 +02:00
|
|
|
project(netex LANGUAGES C)
|
2022-12-05 20:45:26 +01:00
|
|
|
|
|
|
|
add_compile_options(-pthread)
|
|
|
|
|
|
|
|
set(PROJ_BUILD_DIR ${CMAKE_BINARY_DIR})
|
|
|
|
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${PROJ_BUILD_DIR}/lib)
|
|
|
|
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJ_BUILD_DIR}/bin)
|
|
|
|
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJ_BUILD_DIR}/bin)
|
|
|
|
|
|
|
|
set(PROJ_REL_BUILD_DIR ${CMAKE_BINARY_DIR}/release)
|
|
|
|
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY_RELEASE ${PROJ_REL_BUILD_DIR}/lib)
|
|
|
|
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE ${PROJ_REL_BUILD_DIR}/bin)
|
|
|
|
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE ${PROJ_REL_BUILD_DIR}/bin)
|
|
|
|
|
|
|
|
set(PROJ_DEB_BUILD_DIR ${CMAKE_BINARY_DIR}/debug)
|
|
|
|
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY_DEBUG ${PROJ_DEB_BUILD_DIR}/lib)
|
|
|
|
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY_DEBUG ${PROJ_DEB_BUILD_DIR}/bin)
|
|
|
|
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG ${PROJ_DEB_BUILD_DIR}/bin)
|
|
|
|
|
|
|
|
|
2023-12-24 18:23:19 +01:00
|
|
|
add_subdirectory(src)
|