24 lines
524 B
CMake
24 lines
524 B
CMake
cmake_minimum_required(VERSION 3.25 FATAL_ERROR)
|
|
|
|
project(4JLibs LANGUAGES CXX)
|
|
|
|
add_library(4JLibs.Globals INTERFACE)
|
|
|
|
target_include_directories(4JLibs.Globals INTERFACE
|
|
${CMAKE_CURRENT_SOURCE_DIR}/inc
|
|
)
|
|
|
|
set(CMAKE_DEBUG_POSTFIX "_d")
|
|
add_compile_definitions($<$<CONFIG:Debug>:_DEBUG>)
|
|
|
|
# msvc specific flags
|
|
if(MSVC)
|
|
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
|
|
endif()
|
|
|
|
if(WIN32)
|
|
add_subdirectory(impls/Windows_Libs)
|
|
else()
|
|
message(FATAL_ERROR "Unsupported platform.")
|
|
endif()
|