mirror of
https://github.com/pine64/blisp.git
synced 2025-03-13 18:38:57 +00:00
20 lines
784 B
CMake
20 lines
784 B
CMake
set(ARGTABLE3_ENABLE_TESTS OFF CACHE BOOL "Enable unit tests")
|
|
set(ARGTABLE3_ENABLE_EXAMPLES OFF CACHE BOOL "Enable examples")
|
|
#set(ARGTABLE3_REPLACE_GETOPT OFF CACHE BOOL "Replace getopt in the system C library")
|
|
add_subdirectory(${CMAKE_SOURCE_DIR}/vendor/argtable3 ${CMAKE_CURRENT_BINARY_DIR}/argtable3)
|
|
|
|
add_executable(blisp src/main.c src/cmd/write.c src/util.c src/common.c src/cmd/iot.c)
|
|
|
|
target_include_directories(blisp PRIVATE
|
|
"${CMAKE_SOURCE_DIR}/include"
|
|
"${CMAKE_SOURCE_DIR}/vendor/argtable3/src")
|
|
|
|
target_link_libraries(blisp PRIVATE
|
|
argtable3
|
|
libblisp_static)
|
|
|
|
if (WIN32)
|
|
target_link_libraries(blisp PRIVATE Setupapi.lib)
|
|
elseif (APPLE)
|
|
target_link_libraries(blisp PRIVATE "-framework IOKit" "-framework CoreFoundation")
|
|
endif () |