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(jsoncpp ${json_SRCS}) target_link_libraries( jsoncpp ${json_platform_LIBS} )