Add cmake configuration for Libfox. (#3660)
* Add cmake configuration for Libfox. CMake on OS X does not find libfox in the homebrew location otherwise * Fix findpackage(Fox) for case sensitive systems
This commit is contained in:
committed by
Bertrand Songis
parent
789326d2cd
commit
a28cbf88f3
@@ -48,7 +48,7 @@ else()
|
||||
set(CMAKE_CXX_FLAGS_DEBUG "${COMMON_CPP_FLAGS} -g -O0")
|
||||
endif()
|
||||
|
||||
if(NOT WIN32)
|
||||
if((NOT WIN32) AND FOX_FOUND)
|
||||
if(SIMU_DISKIO)
|
||||
add_definitions(-DSIMU_DISKIO)
|
||||
set(SIMU_SRC ${SIMU_SRC} ../../thirdparty/FatFs/ff.c ../../thirdparty/FatFs/option/ccsbcs.c)
|
||||
@@ -56,8 +56,8 @@ if(NOT WIN32)
|
||||
|
||||
add_executable(simu WIN32 ${SIMU_SRC} ../../simu.cpp)
|
||||
add_dependencies(simu ${FIRMWARE_DEPENDENCIES})
|
||||
target_include_directories(simu PUBLIC /usr/local/include/fox-1.6 PUBLIC /usr/include/fox-1.6 /opt/local/include/fox-1.6)
|
||||
target_link_libraries(simu FOX-1.6 pthread ${SDL_LIBRARY})
|
||||
target_include_directories(simu PUBLIC ${FOX_INCLUDE_DIR} )
|
||||
target_link_libraries(simu ${FOX_LIBRARY} pthread ${SDL_LIBRARY})
|
||||
endif()
|
||||
|
||||
if(APPLE)
|
||||
|
||||
Reference in New Issue
Block a user