Switch to CMake

This commit is contained in:
Mike Nolan 2023-05-10 06:43:56 -05:00
parent b0a0668d82
commit c033f7ae14
1 changed files with 8 additions and 1 deletions

View File

@ -6,7 +6,7 @@ option(USE_NETWORK "Enable Networking" ON)
option(USE_CURL "Enable curl" ON)
option(USE_JANSSON "Use JANSSON (JSON)" ON)
option(USE_THREAD "Use Threading" ON)
option(USE_MBED "Use MbedTls" ON)
if(USE_THREAD)
add_definitions(-DUSE_THREADS)
@ -25,6 +25,13 @@ include_directories(${SDL2_INCLUDE_DIRS})
target_link_libraries(tlanginterp ${SDL2_LIBRARIES})
endif()
if(USE_MBED)
add_definitions(-DUSE_MBED)
find_package(MBEDTLS REQUIRED)
include_directories(${MBEDTLS_INCLUDE_DIRS})
target_link_libraries(tlanginterp ${MBEDTLS_LIBRARIES})
endif()
if(USE_CURL)
add_definitions(-DUSE_CURL)
find_package(CURL REQUIRED)