Commit 7dc90d58 authored by Justin Carpentier's avatar Justin Carpentier
Browse files

Merge pull request #36 from aelkhour/master

Build library only if sources are detected.
parents 51885b8b ab86fdb0
......@@ -48,11 +48,12 @@ IF(LUA5_1_FOUND)
multibody/parser/lua/lua_tables.cpp
multibody/parser/lua.cpp
)
SET(BUILD_MAIN_LIBRARY True)
ENDIF(LUA5_1_FOUND)
SET(${PROJECT_NAME}_SOURCES ${${PROJECT_NAME}_MULTIBODY_PARSER_LUA_SOURCES})
IF (UNIX )
IF (UNIX AND BUILD_MAIN_LIBRARY)
# Create target libpinocchio.so
ADD_LIBRARY ( ${PROJECT_NAME} SHARED ${HEADERS} ${${PROJECT_NAME}_SOURCES} )
SET_TARGET_PROPERTIES( ${PROJECT_NAME} PROPERTIES LINKER_LANGUAGE CXX)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment