1 2 3 4 5 6 7 8 9 10 11 12 13 14
if( UNIX ) set(json_SRCS jsoncpp.cpp) set(json_platform_LIBS "") else( UNIX ) set(json_SRCS jsoncpp.cpp) set(json_platform_LIBS "") endif( UNIX ) add_library(json ${json_SRCS}) target_link_libraries( json ${json_platform_LIBS} )