Add Cmake option - ONLY_LIBS

This commit is contained in:
omniavinco 2013-05-25 14:34:35 +09:00
parent 5408d71c61
commit dac0614780

View File

@ -24,7 +24,7 @@ ELSE( )
SET_PROPERTY( TARGET libglew_shared PROPERTY LIBRARY_OUTPUT_NAME "libglew" )
ENDIF( )
IF( ${CMAKE_CURRENT_SOURCE_DIR} STREQUAL ${CMAKE_SOURCE_DIR} )
IF( ${CMAKE_CURRENT_SOURCE_DIR} STREQUAL ${CMAKE_SOURCE_DIR} AND NOT ONLY_LIBS )
ADD_EXECUTABLE( glewinfo ${SRC_DIR}/glewinfo.c )
ADD_EXECUTABLE( visualinfo ${SRC_DIR}/visualinfo.c )