Add FreeBSD include and link paths into CMakeLists.txt
@@ -436,6 +436,10 @@ macro(MACRO_CORE SCRIPT DEFINE BUILD_DEPRECATED)
add_library(tic80core${SCRIPT} STATIC ${TIC80CORE_SRC})
+ # FreeBSD
+ target_include_directories(tic80core${SCRIPT} PRIVATE ${SYSROOT_PATH}/usr/local/include)
+ target_link_directories(tic80core${SCRIPT} PRIVATE ${SYSROOT_PATH}/usr/local/lib)
+
target_include_directories(tic80core${SCRIPT}
PRIVATE
${THIRDPARTY_DIR}/moonscript
@@ -521,6 +525,10 @@ if(BUILD_SDL AND BUILD_PLAYER AND NOT RPI)
add_executable(player-sdl WIN32 ${CMAKE_SOURCE_DIR}/src/system/sdl/player.c)
+ # FreeBSD
+ target_include_directories(player-sdl PRIVATE ${SYSROOT_PATH}/usr/local/include)
+ target_link_directories(player-sdl PRIVATE ${SYSROOT_PATH}/usr/local/lib)
+
target_include_directories(player-sdl PRIVATE
${THIRDPARTY_DIR}/sdl2/include
${CMAKE_SOURCE_DIR}/include
@@ -1037,6 +1045,10 @@ if(BUILD_SDL)
target_compile_definitions(tic80 PRIVATE TOUCH_INPUT_SUPPORT)
endif()
+ # FreeBSD
+ target_include_directories(tic80 PRIVATE ${SYSROOT_PATH}/usr/local/include)
+ target_link_directories(tic80 PRIVATE ${SYSROOT_PATH}/usr/local/lib)
+
if(RPI)
target_include_directories(tic80 PRIVATE ${SYSROOT_PATH}/usr/local/include/SDL2)
target_link_directories(tic80 PRIVATE ${SYSROOT_PATH}/usr/local/lib ${SYSROOT_PATH}/opt/vc/lib)
