|
|
|
@ -1,18 +1,3 @@
|
|
|
|
|
# * NL_LIB_PREFIX (default: $CMAKE_INSTALL_PREFIX/lib)
|
|
|
|
|
# * NL_DRIVER_PREFIX (default: $CMAKE_INSTALL_PREFIX/lib (windows) or $CMAKE_INSTALL_PREFIX/lib/nel)
|
|
|
|
|
SET(EXTERNAL_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../3rdParty" CACHE PATH "3rd party libraries root path.")
|
|
|
|
|
ENDIF(NOT EXTERNAL_PATH)
|
|
|
|
|
|
|
|
|
|
IF(NOT EXTERNAL_INCLUDE_PATH)
|
|
|
|
|
SET(EXTERNAL_INCLUDE_PATH "${EXTERNAL_PATH}/include" CACHE PATH "3rd party libraries include path.")
|
|
|
|
|
ENDIF(NOT EXTERNAL_INCLUDE_PATH)
|
|
|
|
|
|
|
|
|
|
IF(NOT EXTERNAL_LIBRARY_PATH)
|
|
|
|
|
SET(EXTERNAL_LIBRARY_PATH "${EXTERNAL_PATH}/lib" CACHE PATH "3rd party libraries lib path.")
|
|
|
|
|
ENDIF(NOT EXTERNAL_LIBRARY_PATH)
|
|
|
|
|
|
|
|
|
|
SET(CMAKE_INCLUDE_PATH "${EXTERNAL_INCLUDE_PATH};${CMAKE_INCLUDE_PATH}")
|
|
|
|
|
|
|
|
|
|
PROJECT(NeL CXX C)
|
|
|
|
|
|
|
|
|
|
IF(WITH_STATIC_DRIVERS)
|
|
|
|
@ -115,7 +100,7 @@ ENDIF(WIN32)
|
|
|
|
|
|
|
|
|
|
ADD_SUBDIRECTORY(include)
|
|
|
|
|
# config.h configuration and use by projects
|
|
|
|
|
CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/config.h.cmake ${CMAKE_BINARY_DIR}/config.h)
|
|
|
|
|
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake ${CMAKE_BINARY_DIR}/config.h)
|
|
|
|
|
INCLUDE_DIRECTORIES(${CMAKE_BINARY_DIR})
|
|
|
|
|
ADD_DEFINITIONS(-DHAVE_CONFIG_H)
|
|
|
|
|
|
|
|
|
|